nodejs-jdbc
Version:
JDBC wrapper for Node
354 lines (353 loc) • 18.8 kB
TypeScript
import { IResultSet, ResultSet } from './ResultSet';
import { Connection, IConnection } from './Connection';
export interface IDatabaseMetadata {
allProceduresAreCallableSync(): boolean;
allTablesAreSelectableSync(): boolean;
autoCommitFailureClosesAllResultSetsSync(): boolean;
dataDefinitionCausesTransactionCommitSync(): boolean;
dataDefinitionIgnoredInTransactionsSync(): boolean;
deletesAreDetectedSync(type: number): boolean;
doesMaxRowSizeIncludeBlobsSync(): boolean;
generatedKeyAlwaysReturnedSync(): boolean;
getAttributesPromise(catalog: string, schemaPattern: string, typeNamePattern: string, attributeNamePattern: string): Promise<IResultSet>;
getBestRowIdentifierPromise(catalog: string, schema: string, table: string, scope: number, nullable: boolean): Promise<IResultSet>;
getCatalogsPromise(): Promise<IResultSet>;
getCatalogSeparatorSync(): string;
getCatalogTermSync(): string;
getClientInfoPropertiesPromise(): Promise<IResultSet>;
getColumnPrivilegesPromise(catalog: string, schema: string, table: string, columnNamePattern: string): Promise<IResultSet>;
getColumnsPromise(catalog: string, schemaPattern: string, tableNamePattern: string, columnNamePattern: string): Promise<IResultSet>;
getConnectionPromise(): Promise<IConnection>;
getCrossReferencePromise(parentCatalog: string, parentSchema: string, parentTable: string, foreignCatalog: string, foreignSchema: string, foreignTable: string): Promise<IResultSet>;
getDatabaseMajorVersionSync(): number;
getDatabaseMinorVersionSync(): number;
getDatabaseProductNameSync(): string;
getDatabaseProductVersionSync(): string;
getDefaultTransactionIsolationSync(): number;
getDriverMajorVersionSync(): number;
getDriverMinorVersionSync(): number;
getDriverNameSync(): string;
getDriverVersionSync(): string;
getExportedKeysPromise(catalog: string, schema: string, table: string): Promise<IResultSet>;
getExtraNameCharactersSync(): string;
getFunctionColumnsPromise(catalog: string, schemaPattern: string, functionNamePattern: string, columnNamePattern: string): Promise<IResultSet>;
getFunctionsPromise(catalog: string, schemaPattern: string, functionNamePattern: string): Promise<IResultSet>;
getIdentifierQuoteStringSync(): string;
getImportedKeysPromise(catalog: string, schema: string, table: string): Promise<IResultSet>;
getIndexInfoPromise(catalog: string, schema: string, table: string, unique: boolean, approximate: boolean): Promise<IResultSet>;
getJDBCMajorVersionSync(): number;
getJDBCMinorVersionSync(): number;
getMaxBinaryLiteralLengthSync(): number;
getMaxCatalogNameLengthSync(): number;
getMaxCharLiteralLengthSync(): number;
getMaxColumnNameLengthSync(): number;
getMaxColumnsInGroupBySync(): number;
getMaxColumnsInIndexSync(): number;
getMaxColumnsInOrderBySync(): number;
getMaxColumnsInSelectSync(): number;
getMaxColumnsInTableSync(): number;
getMaxConnectionsSync(): number;
getMaxCursorNameLengthSync(): number;
getMaxIndexLengthSync(): number;
getMaxProcedureNameLengthSync(): number;
getMaxRowSizeSync(): number;
getMaxSchemaNameLengthSync(): number;
getMaxStatementLengthSync(): number;
getMaxStatementsSync(): number;
getMaxTableNameLengthSync(): number;
getMaxTablesInSelectSync(): number;
getMaxUserNameLengthSync(): number;
getNumericFunctionsSync(): string;
getPrimaryKeysPromise(catalog: string, schema: string, table: string): Promise<IResultSet>;
getProcedureColumnsPromise(catalog: string, schemaPattern: string, procedureNamePattern: string, columnNamePattern: string): Promise<IResultSet>;
getProceduresPromise(catalog: string, schemaPattern: string, procedureNamePattern: string): Promise<IResultSet>;
getProcedureTermSync(): Promise<IResultSet>;
getPseudoColumnsPromise(catalog: string, schemaPattern: string, tableNamePattern: string, columnNamePattern: string): Promise<IResultSet>;
getResultSetHoldabilitySync(): number;
getRowIdLifetimeSync(): any;
getSchemasPromise(catalog: string, schemaPattern: string): Promise<IResultSet>;
getSchemasPromise(): Promise<IResultSet>;
getTablesPromise(catalog: string, schemaPattern: string, tableNamePattern: string, types: string[]): Promise<IResultSet>;
getSchemaTermSync(): string;
getSearchStringEscapeSync(): string;
getSQLKeywordsSync(): string;
getSQLStateTypeSync(): number;
getStringFunctionsSync(): string;
getSuperTablesPromise(catalog: string, schemaPattern: string, tableNamePattern: string): Promise<IResultSet>;
getSuperTypesPromise(catalog: string, schemaPattern: string, typeNamePattern: string): Promise<IResultSet>;
getSystemFunctionsSync(): string;
getTablePrivilegesPromise(catalog: string, schemaPattern: string, tableNamePattern: string): Promise<IResultSet>;
getTableTypesPromise(): Promise<IResultSet>;
getTimeDateFunctionsSync(): string;
getTypeInfoPromise(): Promise<IResultSet>;
getUDTsPromise(catalog: string, schemaPattern: string, typeNamePattern: string, types: number[]): Promise<IResultSet>;
getURLSync(): string;
getUserNameSync(): string;
getVersionColumnsPromise(catalog: string, schema: string, table: string): Promise<IResultSet>;
insertsAreDetectedSync(type: number): boolean;
isCatalogAtStartSync(): boolean;
isReadOnlySync(): boolean;
locatorsUpdateCopySync(): boolean;
nullPlusNonNullIsNullSync(): boolean;
nullsAreSortedAtEndSync(): boolean;
nullsAreSortedAtStartSync(): boolean;
nullsAreSortedHighSync(): boolean;
nullsAreSortedLowSync(): boolean;
othersDeletesAreVisibleSync(type: number): boolean;
othersInsertsAreVisibleSync(type: number): boolean;
othersUpdatesAreVisibleSync(type: number): boolean;
ownDeletesAreVisibleSync(type: number): boolean;
ownInsertsAreVisibleSync(type: number): boolean;
ownUpdatesAreVisibleSync(type: number): boolean;
storesLowerCaseIdentifiersSync(): boolean;
storesLowerCaseQuotedIdentifiersSync(): boolean;
storesMixedCaseIdentifiersSync(): boolean;
storesMixedCaseQuotedIdentifiersSync(): boolean;
storesUpperCaseIdentifiersSync(): boolean;
storesUpperCaseQuotedIdentifiersSync(): boolean;
supportsAlterTableWithAddColumnSync(): boolean;
supportsAlterTableWithDropColumnSync(): boolean;
supportsANSI92EntryLevelSQLSync(): boolean;
supportsANSI92FullSQLSync(): boolean;
supportsANSI92IntermediateSQLSync(): boolean;
supportsBatchUpdatesSync(): boolean;
supportsCatalogsInDataManipulationSync(): boolean;
supportsCatalogsInIndexDefinitionsSync(): boolean;
supportsCatalogsInPrivilegeDefinitionsSync(): boolean;
supportsCatalogsInProcedureCallsSync(): boolean;
supportsCatalogsInTableDefinitionsSync(): boolean;
supportsColumnAliasingSync(): boolean;
supportsConvertSync(fromType: number, toType: number): boolean;
supportsCoreSQLGrammarSync(): boolean;
supportsCorrelatedSubqueriesSync(): boolean;
supportsDataDefinitionAndDataManipulationTransactionsSync(): boolean;
supportsDataManipulationTransactionsOnlySync(): boolean;
supportsDifferentTableCorrelationNamesSync(): boolean;
supportsExpressionsInOrderBySync(): boolean;
supportsExtendedSQLGrammarSync(): boolean;
supportsFullOuterJoinsSync(): boolean;
supportsGetGeneratedKeysSync(): boolean;
supportsGroupBySync(): boolean;
supportsGroupByBeyondSelectSync(): boolean;
supportsGroupByUnrelatedSync(): boolean;
supportsIntegrityEnhancementFacilitySync(): boolean;
supportsLikeEscapeClauseSync(): boolean;
supportsLimitedOuterJoinsSync(): boolean;
supportsMinimumSQLGrammarSync(): boolean;
supportsMixedCaseIdentifiersSync(): boolean;
supportsMixedCaseQuotedIdentifiersSync(): boolean;
supportsMultipleOpenResultsSync(): boolean;
supportsMultipleResultSetsSync(): boolean;
supportsMultipleTransactionsSync(): boolean;
supportsNamedParametersSync(): boolean;
supportsNonNullableColumnsSync(): boolean;
supportsOpenCursorsAcrossCommitSync(): boolean;
supportsOpenCursorsAcrossRollbackSync(): boolean;
supportsOpenStatementsAcrossCommitSync(): boolean;
supportsOpenStatementsAcrossRollbackSync(): boolean;
supportsOrderByUnrelatedSync(): boolean;
supportsOuterJoinsSync(): boolean;
supportsPositionedDeleteSync(): Promise<IResultSet>;
supportsPositionedUpdateSync(): Promise<IResultSet>;
supportsResultSetConcurrencySync(type: number, concurrency: number): boolean;
supportsResultSetHoldabilitySync(holdability: number): boolean;
supportsResultSetTypeSync(type: number): boolean;
supportsSavepointsSync(): boolean;
supportsSchemasInDataManipulationSync(): boolean;
supportsSchemasInIndexDefinitionsSync(): boolean;
supportsSchemasInPrivilegeDefinitionsSync(): boolean;
supportsSchemasInProcedureCallsSync(): boolean;
supportsSchemasInTableDefinitionsSync(): boolean;
supportsSelectForUpdateSync(): boolean;
supportsStatementPoolingSync(): boolean;
supportsStoredFunctionsUsingCallSyntaxSync(): boolean;
supportsStoredProceduresSync(): boolean;
supportsSubqueriesInComparisonsSync(): boolean;
supportsSubqueriesInExistsSync(): boolean;
supportsSubqueriesInInsSync(): boolean;
supportsSubqueriesInQuantifiedsSync(): boolean;
supportsTableCorrelationNamesSync(): boolean;
supportsTransactionIsolationLevelSync(level: number): boolean;
supportsTransactionsSync(): boolean;
supportsUnionSync(): boolean;
supportsUnionAllSync(): boolean;
updatesAreDetectedSync(type: number): boolean;
usesLocalFilePerTableSync(): boolean;
usesLocalFilesSync(): boolean;
}
export declare class DatabaseMetaData {
private dbm;
constructor(databaseMetaData: IDatabaseMetadata);
getSchemas(catalog?: string, schemaPattern?: string): Promise<ResultSet>;
getTables(catalog?: string, schemaPattern?: string, tableNamePattern?: string, types?: string[]): Promise<ResultSet>;
allProceduresAreCallable(): boolean;
allTablesAreSelectable(): boolean;
autoCommitFailureClosesAllResultSets(): boolean;
dataDefinitionCausesTransactionCommit(): boolean;
dataDefinitionIgnoredInTransactions(): boolean;
deletesAreDetected(type: number): boolean;
doesMaxRowSizeIncludeBlobs(): boolean;
generatedKeyAlwaysReturned(): boolean;
getAttributes(catalog: string, schemaPattern: string, typeNamePattern: string, attributeNamePattern: string): Promise<ResultSet>;
getBestRowIdentifier(catalog: string, schema: string, table: string, scope: number, nullable: boolean): Promise<ResultSet>;
getCatalogs(): Promise<ResultSet>;
getCatalogSeparator(): string;
getCatalogTerm(): string;
getClientInfoProperties(): Promise<ResultSet>;
getColumnPrivileges(catalog: string, schema: string, table: string, columnNamePattern: string): Promise<ResultSet>;
getColumns(catalog: string, schemaPattern: string, tableNamePattern: string, columnNamePattern: string): Promise<ResultSet>;
getConnection(): Promise<Connection>;
getCrossReference(parentCatalog: string, parentSchema: string, parentTable: string, foreignCatalog: string, foreignSchema: string, foreignTable: string): Promise<ResultSet>;
getDatabaseMajorVersion(): number;
getDatabaseMinorVersion(): number;
getDatabaseProductName(): string;
getDatabaseProductVersion(): string;
getDefaultTransactionIsolation(): number;
getDriverMajorVersion(): number;
getDriverMinorVersion(): number;
getDriverName(): string;
getDriverVersion(): string;
getExportedKeys(catalog: string, schema: string, table: string): Promise<ResultSet>;
getExtraNameCharacters(): string;
getFunctionColumns(catalog: string, schemaPattern: string, functionNamePattern: string, columnNamePattern: string): Promise<ResultSet>;
getFunctions(catalog: string, schemaPattern: string, functionNamePattern: string): Promise<ResultSet>;
getIdentifierQuoteString(): string;
getImportedKeys(catalog: string, schema: string, table: string): Promise<ResultSet>;
getIndexInfo(catalog: string, schema: string, table: string, unique: boolean, approximate: boolean): Promise<ResultSet>;
getJDBCMajorVersion(): number;
getJDBCMinorVersion(): number;
getMaxBinaryLiteralLength(): number;
getMaxCatalogNameLength(): number;
getMaxCharLiteralLength(): number;
getMaxColumnNameLength(): number;
getMaxColumnsInGroupBy(): number;
getMaxColumnsInIndex(): number;
getMaxColumnsInOrderBy(): number;
getMaxColumnsInSelect(): number;
getMaxColumnsInTable(): number;
getMaxConnections(): number;
getMaxCursorNameLength(): number;
getMaxIndexLength(): number;
getMaxProcedureNameLength(): number;
getMaxRowSize(): number;
getMaxSchemaNameLength(): number;
getMaxStatementLength(): number;
getMaxStatements(): number;
getMaxTableNameLength(): number;
getMaxTablesInSelect(): number;
getMaxUserNameLength(): number;
getNumericFunctions(): string;
getPrimaryKeys(catalog: string, schema: string, table: string): Promise<ResultSet>;
getProcedureColumns(catalog: string, schemaPattern: string, procedureNamePattern: string, columnNamePattern: string): Promise<ResultSet>;
getProcedures(catalog: string, schemaPattern: string, procedureNamePattern: string): Promise<ResultSet>;
getProcedureTerm(): Promise<IResultSet>;
getPseudoColumns(catalog: string, schemaPattern: string, tableNamePattern: string, columnNamePattern: string): Promise<ResultSet>;
getResultSetHoldability(): number;
getRowIdLifetime(): any;
getSchemaTerm(): string;
getSearchStringEscape(): string;
getSQLKeywords(): string;
getSQLStateType(): number;
getStringFunctions(): string;
getSuperTables(catalog: string, schemaPattern: string, tableNamePattern: string): Promise<ResultSet>;
getSuperTypes(catalog: string, schemaPattern: string, typeNamePattern: string): Promise<ResultSet>;
getSystemFunctions(): string;
getTablePrivileges(catalog: string, schemaPattern: string, tableNamePattern: string): Promise<ResultSet>;
getTableTypes(): Promise<ResultSet>;
getTimeDateFunctions(): string;
getTypeInfo(): Promise<ResultSet>;
getUDTs(catalog: string, schemaPattern: string, typeNamePattern: string, types: number[]): Promise<ResultSet>;
getURL(): string;
getUserName(): string;
getVersionColumns(catalog: string, schema: string, table: string): Promise<ResultSet>;
insertsAreDetected(type: number): boolean;
isCatalogAtStart(): boolean;
isReadOnly(): boolean;
locatorsUpdateCopy(): boolean;
nullPlusNonNullIsNull(): boolean;
nullsAreSortedAtEnd(): boolean;
nullsAreSortedAtStart(): boolean;
nullsAreSortedHigh(): boolean;
nullsAreSortedLow(): boolean;
othersDeletesAreVisible(type: number): boolean;
othersInsertsAreVisible(type: number): boolean;
othersUpdatesAreVisible(type: number): boolean;
ownDeletesAreVisible(type: number): boolean;
ownInsertsAreVisible(type: number): boolean;
ownUpdatesAreVisible(type: number): boolean;
storesLowerCaseIdentifiers(): boolean;
storesLowerCaseQuotedIdentifiers(): boolean;
storesMixedCaseIdentifiers(): boolean;
storesMixedCaseQuotedIdentifiers(): boolean;
storesUpperCaseIdentifiers(): boolean;
storesUpperCaseQuotedIdentifiers(): boolean;
supportsAlterTableWithAddColumn(): boolean;
supportsAlterTableWithDropColumn(): boolean;
supportsANSI92EntryLevelSQL(): boolean;
supportsANSI92FullSQL(): boolean;
supportsANSI92IntermediateSQL(): boolean;
supportsBatchUpdates(): boolean;
supportsCatalogsInDataManipulation(): boolean;
supportsCatalogsInIndexDefinitions(): boolean;
supportsCatalogsInPrivilegeDefinitions(): boolean;
supportsCatalogsInProcedureCalls(): boolean;
supportsCatalogsInTableDefinitions(): boolean;
supportsColumnAliasing(): boolean;
supportsConvert(fromType: number, toType: number): boolean;
supportsCoreSQLGrammar(): boolean;
supportsCorrelatedSubqueries(): boolean;
supportsDataDefinitionAndDataManipulationTransactions(): boolean;
supportsDataManipulationTransactionsOnly(): boolean;
supportsDifferentTableCorrelationNames(): boolean;
supportsExpressionsInOrderBy(): boolean;
supportsExtendedSQLGrammar(): boolean;
supportsFullOuterJoins(): boolean;
supportsGetGeneratedKeys(): boolean;
supportsGroupBy(): boolean;
supportsGroupByBeyondSelect(): boolean;
supportsGroupByUnrelated(): boolean;
supportsIntegrityEnhancementFacility(): boolean;
supportsLikeEscapeClause(): boolean;
supportsLimitedOuterJoins(): boolean;
supportsMinimumSQLGrammar(): boolean;
supportsMixedCaseIdentifiers(): boolean;
supportsMixedCaseQuotedIdentifiers(): boolean;
supportsMultipleOpenResults(): boolean;
supportsMultipleResultSets(): boolean;
supportsMultipleTransactions(): boolean;
supportsNamedParameters(): boolean;
supportsNonNullableColumns(): boolean;
supportsOpenCursorsAcrossCommit(): boolean;
supportsOpenCursorsAcrossRollback(): boolean;
supportsOpenStatementsAcrossCommit(): boolean;
supportsOpenStatementsAcrossRollback(): boolean;
supportsOrderByUnrelated(): boolean;
supportsOuterJoins(): boolean;
supportsPositionedDelete(): Promise<IResultSet>;
supportsPositionedUpdate(): void;
supportsResultSetConcurrency(type: number, concurrency: number): boolean;
supportsResultSetHoldability(holdability: number): boolean;
supportsResultSetType(type: number): boolean;
supportsSavepoints(): boolean;
supportsSchemasInDataManipulation(): boolean;
supportsSchemasInIndexDefinitions(): boolean;
supportsSchemasInPrivilegeDefinitions(): boolean;
supportsSchemasInProcedureCalls(): boolean;
supportsSchemasInTableDefinitions(): boolean;
supportsSelectForUpdate(): boolean;
supportsStatementPooling(): boolean;
supportsStoredFunctionsUsingCallSyntax(): boolean;
supportsStoredProcedures(): boolean;
supportsSubqueriesInComparisons(): boolean;
supportsSubqueriesInExists(): boolean;
supportsSubqueriesInIns(): boolean;
supportsSubqueriesInQuantifieds(): boolean;
supportsTableCorrelationNames(): boolean;
supportsTransactionIsolationLevel(level: number): boolean;
supportsTransactions(): boolean;
supportsUnion(): boolean;
supportsUnionAll(): boolean;
updatesAreDetected(type: number): boolean;
usesLocalFilePerTable(): boolean;
usesLocalFiles(): boolean;
}