Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IDatabase

Contains the information about a Progress database (name, tables).

Hierarchy

  • IDatabase

Index

Properties

collation

collation: string

The collation of this database.

encoding

encoding: string

The encoding code-page of this database.

lname

lname: string

The logical name of this database.

meta

Link back to the connection meta-data of this database.

name

name: string

The physical name of this database.

type

type: string

The type of this database (progress or data server).

version

version: string

The version number of this database.

Methods

getNumTables

  • getNumTables(): Promise<number>
  • Returns the number of tables in the database.

    Returns Promise<number>

getTable

  • getTable(table: string | number): Promise<Table>
  • Returns the table of given name/number from the database. If type of "table" is string, it returns the table with the given name from database. If type of "table" is number, it returns the Nth table from database (zero base).

    Parameters

    • table: string | number

      The name/number of the table

    Returns Promise<Table>

getTables

  • getTables(): Promise<Table[]>
  • Returns all tables in the database.

    Returns Promise<Table[]>