Properties
batchCreate
batchCreate: (<T>(data) => Promise<T[]>) Type declaration
- <T>(data): Promise<T[]>
Returns Promise<T[]>
batchDelete
batchDelete: (<T>(ids) => Promise<Record<T, boolean>>) Type declaration
- <T>(ids): Promise<Record<T, boolean>>
Returns Promise<Record<T, boolean>>
batchUpdate
batchUpdate: (<T>(data) => Promise<T[]>) Type declaration
- <T>(data): Promise<T[]>
Returns Promise<T[]>
create
create: ((data) => Promise<boolean>)
Type declaration
- (data): Promise<boolean>
Returns Promise<boolean>
delete
delete: ((id) => Promise<boolean>)
Type declaration
- (id): Promise<boolean>
Returns Promise<boolean>
deleteAll
deleteAll: (() => Promise<boolean>)
Type declaration
- (): Promise<boolean>
Returns Promise<boolean>
getId
getId: ((id) => Promise<any>)
Type declaration
- (id): Promise<any>
Returns Promise<any>
getIds
getIds: ((ids) => Promise<any[]>)
Type declaration
- (ids): Promise<any[]>
Returns Promise<any[]>
onChange
onChange: (<T>(callback) => { callback: T; id: string; remove: (() => void); }) Type declaration
- <T>(callback): {
callback: T;
id: string;
remove: (() => void);
} Type Parameters
- T extends ((changeData) => void)
Returns {
callback: T;
id: string;
remove: (() => void);
}
callback: T
id: string
remove: (() => void)
update
update: ((data) => Promise<boolean>)
Type declaration
- (data): Promise<boolean>
Returns Promise<boolean>
数据表的操作方法