Hierarchy

Methods

  • IsNew indicates what type of db query (insert or update) should be used with the model instance.

    Returns boolean

  • LastSavedPK returns the last saved primary key of the model.

    Its value is updated to the latest PK value after MarkAsNotNew() or PostScan() calls.

    Returns any

  • MarkAsNew clears the pk field and marks the current model as "new" (aka. forces m.IsNew() to be true).

    Returns void

  • MarkAsNew set the pk field to the Id value and marks the current model as NOT "new" (aka. forces m.IsNew() to be false).

    Returns void

  • Returns any

  • PostScan implements the [dbx.PostScanner] interface.

    It is usually executed right after the model is populated with the db row values.

    Returns void

Properties

created: types.DateTime
data: JSONMap<any>
id: string

Id is the primary key of the model. It is usually autogenerated by the parent model implementation.

level: number
message: string

Generated using TypeDoc