Files
wehub-resource-sync 2114b14ee0
Sync main into demo / sync (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:35:26 +08:00

15 lines
536 B
TypeScript

import type { ContentUri, ContentValues, Cursor } from './types/content';
export abstract class ContentProvider {
readPermission?: string;
writePermission?: string;
abstract query(uri: ContentUri, projection?: string[]): Cursor<any>;
abstract insert(uri: ContentUri, values: ContentValues): ContentUri;
abstract update(uri: ContentUri, values: ContentValues, where?: string): number;
abstract delete(uri: ContentUri, where?: string): number;
abstract getType(uri: ContentUri): string;
}
export default ContentProvider;