UNPKG

node-firebird-driver-native

Version:
32 lines (31 loc) 1.78 kB
import { AttachmentImpl } from './attachment'; import { ResultSetImpl } from './resultset'; import { TransactionImpl } from './transaction'; import { ExecuteOptions, ExecuteQueryOptions, PrepareOptions } from 'node-firebird-driver'; import { AbstractStatement } from 'node-firebird-driver/dist/lib/impl'; import { DataReader, DataWriter } from './fb-util'; import * as fb from 'node-firebird-native-api'; /** Statement implementation. */ export declare class StatementImpl extends AbstractStatement { attachment: AttachmentImpl; hasResultSet: boolean; statementHandle?: fb.Statement; inMetadata?: fb.MessageMetadata; outMetadata?: fb.MessageMetadata; inBuffer: Uint8Array; outBuffer: Uint8Array; dataWriter: DataWriter; dataReader: DataReader; static prepare(attachment: AttachmentImpl, transaction: TransactionImpl, sqlStmt: string, options?: PrepareOptions): Promise<StatementImpl>; /** Disposes this statement's resources. */ protected internalDispose(): Promise<void>; /** Executes a prepared statement that uses the SET TRANSACTION command. Returns the new transaction. */ protected internalExecuteTransaction(transaction: TransactionImpl): Promise<TransactionImpl>; /** Executes a prepared statement that has no result set. */ protected internalExecute(transaction: TransactionImpl, parameters?: Array<any>, options?: ExecuteOptions): Promise<Array<any>>; /** Executes a prepared statement that has result set. */ protected internalExecuteQuery(transaction: TransactionImpl, parameters?: Array<any>, options?: ExecuteQueryOptions): Promise<ResultSetImpl>; setCursorName(cursorName: string): Promise<void>; getExecPathText(): Promise<string | undefined>; get columnLabels(): Promise<string[]>; }