add
add: (
data: { data: string; dataType?: string; searchText?: string },
) => Promise<void>
delete
delete: (dataId: number) => Promise<void>
deleteAll
deleteAll: () => Promise<void>
Type declaration
- (): Promise<void>
Returns Promise<void>
retrieveAll
retrieveAll: (
options: { fields?: ("data" | "search_text")[] },
) => Promise<
{
createdAt: Date;
data?: string;
dataId: number;
dataType: string;
extId: number;
searchText?: string;
updatedAt: Date;
}[],
>
Type declaration
- (
options: { fields?: ("data" | "search_text")[] },
): Promise<
{
createdAt: Date;
data?: string;
dataId: number;
dataType: string;
extId: number;
searchText?: string;
updatedAt: Date;
}[],
> Parameters
- options: { fields?: ("data" | "search_text")[] }
Returns Promise<
{
createdAt: Date;
data?: string;
dataId: number;
dataType: string;
extId: number;
searchText?: string;
updatedAt: Date;
}[],
>
retrieveAllByType
retrieveAllByType: (
dataType: string,
) => Promise<
{
createdAt: Date;
data?: string;
dataId: number;
dataType: string;
extId: number;
searchText?: string;
updatedAt: Date;
}[],
>
Type declaration
- (
dataType: string,
): Promise<
{
createdAt: Date;
data?: string;
dataId: number;
dataType: string;
extId: number;
searchText?: string;
updatedAt: Date;
}[],
> Returns Promise<
{
createdAt: Date;
data?: string;
dataId: number;
dataType: string;
extId: number;
searchText?: string;
updatedAt: Date;
}[],
>
search
search: ( searchParams: { afterCreatedAt?: Date; beforeCreatedAt?: Date; dataId?: number; dataType?: string; fields?: (
"data" | "search_text")
[]; limit?: number; orderByCreatedAt?: EnumValues<typeof SQLSortOrderEnum>; orderByUpdatedAt?: EnumValues<typeof SQLSortOrderEnum>; searchMode?: EnumValues<typeof SearchModeEnum>; searchText?: string; },) => Promise< { createdAt: Date; data?: string; dataId: number; dataType: string; extId: number; searchText?: string; updatedAt: Date; }[],> update
update: (
data: { data: string; dataId: number; searchText?: string },
) => Promise<void>
Type declaration
- (data: { data: string; dataId: number; searchText?: string }): Promise<void>
Parameters
- data: { data: string; dataId: number; searchText?: string }
Returns Promise<void>
Delete all data of this extension.