@codenameryuu/adonis-datatable
Version:
Server side datatables package for Adonis JS
15 lines (14 loc) • 893 B
TypeScript
import type { LucidModel, ModelQueryBuilderContract } from "@adonisjs/lucid/types/model";
import DatabaseDataTable from "./database_datatable.js";
export default class LucidDataTable extends DatabaseDataTable {
protected query: ModelQueryBuilderContract<LucidModel, any>;
constructor(query: ModelQueryBuilderContract<LucidModel, any>);
protected compileQuerySearch(query: ModelQueryBuilderContract<LucidModel, any>, columnName: string, keyword: string, boolean?: string): void;
protected isNotEagerLoaded(relation: string): boolean;
protected resolveRelationColumn(column: string): string;
protected joinEagerLoadedColumn(relation: string, relationColumn: string): string;
protected performJoin(table: string, foreign: string, other: string): void;
protected getPrimaryKeyName(): any;
static canCreate(source: any): boolean;
count(): Promise<number>;
}