| 59 | * data catalog information |
| 60 | */ |
| 61 | export interface DbDriver { |
| 62 | readonly sourceId: DataSourceId; |
| 63 | readonly dialect: SQLDialect; |
| 64 | |
| 65 | runSqlQuery(sqlQuery: string): Promise<Row[]>; |
| 66 | getTableSchema(tableName: string): Promise<Schema>; |
| 67 | getSqlQuerySchema(sqlQuery: string): Promise<Schema>; |
| 68 | |
| 69 | getSqlQueryColumnStatsMap(sqlQuery: string): Promise<ColumnStatsMap>; |
| 70 | |
| 71 | getRootNode(): Promise<DataSourceNode>; |
| 72 | getChildren(path: DataSourcePath): Promise<DataSourceNode[]>; |
| 73 | |
| 74 | // Get a table name that can be used in queries: |
| 75 | getTableName(path: DataSourcePath): Promise<string>; |
| 76 | |
| 77 | // display name for this connection |
| 78 | getDisplayName(): Promise<string>; |
| 79 | } |
| 80 | |
| 81 | /** |
| 82 | * A local or remote connection to a data source. |
no outgoing calls
no test coverage detected