/* auto-generated by NAPI-RS */ /* eslint-disable */ export declare class NativeAdbcConnection { createStatement(): Promise setOption(key: string, value: string): void getObjects(opts: GetObjectsOptions): Promise getTableSchema(opts: GetTableSchemaOptions): Promise getTableTypes(): Promise getInfo(infoCodes?: Array | undefined | null): Promise commit(): Promise rollback(): Promise close(): void } export type _NativeAdbcConnection = NativeAdbcConnection export declare class NativeAdbcDatabase { constructor(opts: NativeConnectOptions) connect(options?: Record | undefined | null): Promise close(): void } export type _NativeAdbcDatabase = NativeAdbcDatabase export declare class NativeAdbcResultIterator { next(): Promise close(): void } export type _NativeAdbcResultIterator = NativeAdbcResultIterator export declare class NativeAdbcStatement { setSqlQuery(query: string): void setOption(key: string, value: string): void executeQuery(): Promise executeUpdate(): Promise bind(data: Buffer): Promise startBindStreamExecute(schemaBytes: Buffer): Promise startBindStream(schemaBytes: Buffer): Promise pushBatch(data: Buffer): void endStream(): void close(): void } export type _NativeAdbcStatement = NativeAdbcStatement export declare function crateVersion(): string export declare function defaultAdbcVersion(): string export declare function defaultLoadFlags(): number export interface GetObjectsOptions { depth: number catalog?: string dbSchema?: string tableName?: string tableType?: Array columnName?: string } export interface GetTableSchemaOptions { catalog?: string dbSchema?: string tableName: string } export interface NativeConnectOptions { driver?: string entrypoint?: string manifestSearchPaths?: Array profileSearchPaths?: Array loadFlags?: number databaseOptions?: Record }