UNPKG

@directus/api

Version:

Directus is a real-time API and App dashboard for managing SQL database content

9 lines (8 loc) 590 B
import type { Knex } from 'knex'; import { SchemaHelper, type CreateIndexOptions, type SortRecord } from '../types.js'; export declare class SchemaHelperMySQL extends SchemaHelper { generateIndexName(type: 'unique' | 'foreign' | 'index', collection: string, fields: string | 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>; }