@directus/api
Version:
Directus is a real-time API and App dashboard for managing SQL database content
12 lines (11 loc) • 737 B
TypeScript
import type { KNEX_TYPES } from '@directus/constants';
import { type Knex } from 'knex';
import type { CreateIndexOptions, Options, SortRecord } from '../types.js';
import { SchemaHelper } from '../types.js';
export declare class SchemaHelperCockroachDb extends SchemaHelper {
changeToType(table: string, column: string, type: (typeof KNEX_TYPES)[number], options?: Options): Promise<void>;
constraintName(existingName: string): string;
getDatabaseSize(): Promise<number | null>;
addInnerSortFieldsToGroupBy(groupByFields: (string | Knex.Raw)[], sortRecords: SortRecord[], hasRelationalSort: boolean): void;
createIndex(collection: string, field: string, options?: CreateIndexOptions): Promise<Knex.SchemaBuilder>;
}