Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

  • new default(server: string, database: string, user: string, password: string, port?: number): default

Properties

QUERY_PRIMARY_KEYS: string = ...
config: config
connection: ConnectionPool

Methods

  • UNIVERSAL_DATATYPE(): string
  • columnsExistInTable(schema: string, table: string, columns: string[]): Promise<boolean>
  • This also checks if table and schema exist in database.

    Parameters

    • schema: string
    • table: string
    • columns: string[]

    Returns Promise<boolean>

  • dropTable_SQL(tableName: string): string
  • dropTempTable(name: string): Promise<void>
  • escape(str: string): string
  • generateColumnString(columns: string[]): string
  • getColumnSample(table: string, column: string): Promise<any>
  • getDatatypes(): Promise<string[]>
  • getJdbcPath(): string
  • getMaxValueByColumn(table: string, column: string): Promise<any>
  • getRedundantGroupLengthByColumns(table: string, columns: string[]): Promise<any>
  • getRedundantValuesByColumns(table: string, columns: string[]): Promise<any>
  • getTablePage(tablename: string, schemaname: string, offset: number, limit: number): Promise<default>
  • getTableRowCount(table: string, schema: string): Promise<default>
  • getViolatingRowsForFD(_sql: string, lhs: string[], rhs: string[], offset: number, limit: number): Promise<default>
  • getViolatingRowsForFDCount(_sql: string, lhs: string[], rhs: string[]): Promise<default>
  • getViolatingRowsForFDCount_Sql(tablename: string, lhs: any, rhs: any): string
  • getViolatingRowsForINDCount_Sql(referencingTable: string, referencedTable: string, columnRelationships: IColumnRelationship[]): string
  • getViolatingRowsForSuggestedIND(referencingTableSql: string, referencedTableSql: string, columnRelationships: IColumnRelationship[], offset: number, limit: number): Promise<default>
  • getViolatingRowsForSuggestedINDCount(referencingTableSql: string, referencedTableSql: string, columnRelationships: IColumnRelationship[]): Promise<default>
  • init(): Promise<void>
  • randomName(): string
  • schemaExistsInDatabase(schema: string): Promise<boolean>
  • tableExistsInSchema(schema: string, table: string): Promise<boolean>
  • tempTableName(name: string): string
  • The #{name} is syntax-sugar in mssql to create a temp table. It is dropped after the session ends by the dbms.

    Parameters

    • name: string

    Returns string

  • tempTableScripts(Sql: string): default
  • testNewValue(t: default): Promise<boolean>
  • testNewValueSql(nv: default): string
  • violatingRowsForFD_SQL(tableName: string, lhs: string[], rhs: string[]): string
  • violatingRowsForSuggestedIND_SQL(referencingTable: string, referencedTable: string, columnRelationships: IColumnRelationship[]): string
  • Because of the LEFT OUTER JOIN and the WHERE-Clause only those rows from the referencing table are selected, which are missing in the referenced table and are therefore violating the Inclusion-Dependency.

    Parameters

    Returns string

Generated using TypeDoc