import JsonFileRecordProvider from 'devapt-core-common/js/datas/providers/jsonfile_record_provider.js'
JsonFileRecordProvider
Extends:
Json File record provider class.
Constructor Summary
Public Constructor | ||
public |
Create a record provider instance |
Member Summary
Public Members | ||
public |
file_adapter: * |
|
public |
Json file provider low db instance. |
|
public |
Json file provider file name. |
|
public |
Json file provider is ready flag. |
|
public |
Json file provider model name. |
|
public |
Json file provider primary key name. |
Method Summary
Public Methods | ||
public |
build_query(arg_query: object | undefined): Promise Build a query to fetch datas. |
|
public |
find_all_records(arg_query: object | undefined): Promise Provide all datas records |
|
public |
find_records_by_id(arg_id: string | number): Promise 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_query(arg_query: object | undefined): Promise Build a query to fetch datas. |
|
public abstract |
find_all_records(arg_query: object | undefined): Promise 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 Members
public file_adapter: * source
Public Methods
public build_query(arg_query: object | undefined): Promise source
Build a query to fetch datas.
Override:
RecordProvider#build_querypublic find_all_records(arg_query: object | undefined): Promise source
Provide all datas records
Override:
RecordProvider#find_all_recordspublic find_records_by_id(arg_id: string | number): Promise source
Find a record by its id.