@aws-amplify/graphql-schema-generator
Version:
Amplify GraphQL schema generator
19 lines • 778 B
TypeScript
import { Field, Index } from '../schema-representation';
import { DataSourceAdapter, DataSourceConfig } from './datasource-adapter';
export declare class MySQLDataSourceAdapter extends DataSourceAdapter {
private config;
private adapter;
private dbBuilder;
constructor(config: DataSourceConfig);
test(): Promise<boolean>;
initialize(): Promise<void>;
private establishDBConnection;
getTablesList(): string[];
getFields(tableName: string): Field[];
getPrimaryKey(tableName: string): Index | null;
getIndexes(tableName: string): Index[];
protected querySchema(): Promise<string>;
cleanup(): void;
}
export declare function getMySQLSchemaQuery(databaseName: string): string;
//# sourceMappingURL=mysql-datasource-adapter.d.ts.map