import type IDriver from '../i-driver' import type { ClientOptions } from '@grpc/grpc-js' export class SqilteDriver implements IDriver { callOptionsFactory: any private readonly options: any constructor(options: ClientOptions) { this.options = options } // eslint-disable-next-line @typescript-eslint/require-await -- todo async init(options: any): Promise { console.log(options) // 根据配置创建 etcd连接 // 初始化 KVClient LeaseClient WatchClient // throw new Error('Method not implemented.') } // eslint-disable-next-line @typescript-eslint/require-await -- todo async exec(service: any, method: string, params: unknown, options?: any): Promise { console.log(service, method, params, options) throw new Error('Method not implemented.') } // 绑定 数据库连接 // eslint-disable-next-line @typescript-eslint/require-await -- todo async withConnection(service: any, fn: (args: { resource: any, client: any }) => Promise | R): Promise { console.log(service, fn) throw new Error('Method not implemented.') } // markFailed(resource: any, error: Error): void { console.log(resource, error) throw new Error('Method not implemented.') } close(): void { // throw new Error('Method not implemented.') } } export type SqliteCient = object