Reference Source
public class | source

SequelizeRecordProvider

Extends:

RecordProvider → SequelizeRecordProvider

Sequelize record provider class.

Constructor Summary

Public Constructor
public

Create a record provider instance

Member Summary

Public Members
public

fields_list: array

Sequelize record provider fields array.

public

Sequelize record provider model instance.

Method Summary

Public Methods
public

Build a query to fetch datas.

public

Provide all datas records

public

Find a record by its id.

public

find_records_by_values(arg_values_map: object, arg_query: object | undefined): Promise

Find a record with a set of values.

Inherited Summary

From class RecordProvider
public

Record provider settings.

public

Build a query to fetch datas.

public abstract

Provide all datas records

public abstract

Find a record by its id.

public abstract

find_records_by_values(arg_values_map: object, arg_query: object | undefined): Promise

Find a record with a set of values.

Public Constructors

public constructor() source

Create a record provider instance

Override:

RecordProvider#constructor

Public Members

public fields_list: array source

Sequelize record provider fields array.

public sequelize_model: object source

Sequelize record provider model instance.

Public Methods

public build_query(arg_query: object | undefined): Promise source

Build a query to fetch datas.

Override:

RecordProvider#build_query

Params:

NameTypeAttributeDescription
arg_query object | undefined

optional query context

Return:

Promise

datas record promise

public find_all_records(arg_query: object | undefined): Promise source

Provide all datas records

Override:

RecordProvider#find_all_records

Params:

NameTypeAttributeDescription
arg_query object | undefined

optional query context

Return:

Promise

datas record promise

public find_records_by_id(arg_id: string | number): Promise source

Find a record by its id.

Override:

RecordProvider#find_records_by_id

Params:

NameTypeAttributeDescription
arg_id string | number

record id

Return:

Promise

promise of found record or null

public find_records_by_values(arg_values_map: object, arg_query: object | undefined): Promise source

Find a record with a set of values.

Override:

RecordProvider#find_records_by_values

Params:

NameTypeAttributeDescription
arg_values_map object

values map

arg_query object | undefined

optional query context

Return:

Promise

promise of found records or null value