OINO TS
    Preparing search index...

    Class OINODbDataModel

    OINO Datamodel object for representing one database table and it's columns.

    Index

    Constructors

    Properties

    Database refererence of the table

    fields: OINODbDataField[]

    Field refererences of the API

    Methods

    • Find index of a field of a given name if any.

      Parameters

      • name: string

        name of the field to find

      Returns number

    • Return the primary key values of one row in order of the data model

      Parameters

      • row: OINODataRow

        data row

      • hashidValues: boolean = false

        apply hashid when applicable

      Returns string[]

    • Print debug information about the fields.

      Parameters

      • separator: string = ""

        string to separate field prints

      Returns string

    • Print all public properties (db, table name, fields) of the datamodel. Used in automated testing validate schema has stayed the same.

      Returns string

    • Print SQL delete statement for id.

      Parameters

      • id: string

        OINO ID (i.e. combined primary key values)

      Returns string

    • Print SQL insert statement from one data row.

      Parameters

      • id: string

        OINO ID (i.e. combined primary key values)

      • row: OINODataRow

        one row of data in the data model

      Returns string