node-firebird-driver-native
Version:
Firebird Native Driver for Node.js
31 lines (30 loc) • 1.98 kB
TypeScript
import { BlobStreamImpl } from './blob';
import { ClientImpl } from './client';
import { StatementImpl } from './statement';
import { TransactionImpl } from './transaction';
import { EventsImpl } from './events';
import { Blob, ConnectOptions, CreateBlobOptions, CreateDatabaseOptions, PrepareOptions, TransactionOptions } from 'node-firebird-driver';
import { AbstractAttachment } from 'node-firebird-driver/dist/lib/impl';
import * as fb from 'node-firebird-native-api';
/** Attachment implementation. */
export declare class AttachmentImpl extends AbstractAttachment {
client: ClientImpl;
attachmentHandle?: fb.Attachment;
static connect(client: ClientImpl, uri: string, options?: ConnectOptions): Promise<AttachmentImpl>;
static createDatabase(client: ClientImpl, uri: string, options?: CreateDatabaseOptions): Promise<AttachmentImpl>;
/** Disconnects this attachment. */
protected internalDisconnect(): Promise<void>;
/** Drops the database and release this attachment. */
protected internalDropDatabase(): Promise<void>;
/** Enable/disable cancellation of operations in this attachment. */
protected internalEnableCancellation(enable: boolean): Promise<void>;
/** Cancel a running operation in this attachment. */
protected internalCancelOperation(forcibleAbort: boolean): Promise<void>;
/** Starts a new transaction. */
protected internalStartTransaction(options?: TransactionOptions): Promise<TransactionImpl>;
protected internalCreateBlob(transaction: TransactionImpl, options?: CreateBlobOptions): Promise<BlobStreamImpl>;
protected internalOpenBlob(transaction: TransactionImpl, blob: Blob): Promise<BlobStreamImpl>;
/** Prepares a query. */
protected internalPrepare(transaction: TransactionImpl, sqlStmt: string, options?: PrepareOptions): Promise<StatementImpl>;
protected internalQueueEvents(names: string[], callBack: (counters: [string, number][]) => Promise<void>): Promise<EventsImpl>;
}