OINO TS
    Preparing search index...

    Class OINODbAbstract

    Base class for database abstraction, implementing methods for connecting, making queries and parsing/formatting data between SQL and serialization formats.

    Hierarchy

    • unknown
      • OINODb
    Index

    Constructors

    Properties

    isConnected: boolean = false
    isValidated: boolean = false
    name: string

    Name of the database

    Methods

    • Print SQL select statement with DB specific formatting.

      Parameters

      • tableName: string

        The name of the table to select from.

      • columns: string

        The columns to be selected.

      • values: string

        The values to be inserted.

      • OptionalreturnIdFields: string[]

        the id fields to return if returnIds is true (if supported by the database)

      Returns string

    • Print SQL select statement with DB specific formatting.

      Parameters

      • tableName: string

        The name of the table to select from.

      • columnNames: string

        The columns to be selected.

      • whereCondition: string

        The WHERE clause to filter the results.

      • orderCondition: string

        The ORDER BY clause to sort the results.

      • limitCondition: string

        The LIMIT clause to limit the number of results.

      • groupByCondition: string

        The GROUP BY clause to group the results.

      Returns string

    • Execute other sql operations.

      Parameters

      • sql: string

        SQL statement.

      Returns Promise<OINODataSet>

    • Execute a select operation.

      Parameters

      • sql: string

        SQL statement.

      Returns Promise<OINODataSet>