/** * Schema AST Module * * Provides a unified graph representation of database schema for: * - Schema diffing and migration generation * - Entity code generation from database * - Drift detection * - Smart relation inference */ import type { SchemaIntrospector } from '../type/migration.js'; import type { SchemaAST } from './schemaAST.js'; export type { DialectConfig } from '../dialect/index.js'; export { DIALECT_CONFIG, getDialectConfig } from '../dialect/index.js'; export { areTypesEqual, canonicalToColumnType, canonicalToSql, canonicalToTypeScript, fieldOptionsToCanonical, isBreakingTypeChange, sqlToCanonical, } from './canonicalType.js'; /** * Introspect the database and build a SchemaAST from it. * * @param introspector - The schema introspector to use * @returns The SchemaAST representing the database schema */ export declare function introspectSchema(introspector: SchemaIntrospector): Promise; export { SchemaAST } from './schemaAST.js'; export type { BuildFromEntitiesOptions } from './schemaASTBuilder.js'; export { SchemaASTBuilder } from './schemaASTBuilder.js'; export type { DiffOptions } from './schemaASTDiffer.js'; export { diffSchemas, SchemaASTDiffer } from './schemaASTDiffer.js'; export type { CanonicalType, ColumnDiff, ColumnNode, ConflictResolution, DetectedRelation, Drift, DriftReport, DriftSeverity, DriftStatus, DriftType, ForeignKeyAction, IndexDiff, IndexNode, IndexSource, IndexSyncStatus, IndexType, RelationshipDiff, RelationshipNode, RelationshipSource, RelationshipType, SchemaAST as ISchemaAST, SchemaDiffResult, SizeVariant, SyncDirection, SyncOptions, TableDiff, TableNode, TypeCategory, ValidationError, ValidationErrorType, } from './types.js'; //# sourceMappingURL=index.d.ts.map