mStorage

Mixin. Provide CRUID operations for entity database persistent (ORM) using ubql query syntax

Methods

addNew(ctx : ubMethodParams) static #

Create record with filled default values and return it to caller. Newly created record is not inserted to database. For inserting record to the database insert method should be called

delete(ctx : ubMethodParams) static #

Delete data

Arguments info:

insert(ctx : ubMethodParams) static #

Insert new row to the entity.

Arguments info:

  • ctx: ubMethodParams
    • mParams: Object

      Object keys is entity attributes names, key values is a value to be inserted

select(ctx : ubMethodParams) static #

Read entity data

Arguments info:

update(ctx : ubMethodParams) static #

Update data

Arguments info:

  • ctx: ubMethodParams
    • mParams: Object

      Object keys is entity attributes names, key values is a value to be inserted

    • mParams: number

      element ID to be updated

  • ctx.mParams.execParams: Object
    • mParams: number

      element ID to be updated

    Object keys is entity attributes names, key values is a value to be inserted