Skip to main content

SQLStoreParameters

@webda/postgres


Class: SQLStoreParameters

Defined in: postgres/src/sqlstore.ts:11

Base parameters for SQL-backed stores

Extends​

  • StoreParameters

Extended by​

Constructors​

Constructor​

new SQLStoreParameters(): SQLStoreParameters

Returns​

SQLStoreParameters

Inherited from​

StoreParameters.constructor

Properties​

database​

database: SQLDatabase

Defined in: postgres/src/sqlstore.ts:13


defaultModel?​

optional defaultModel?: boolean

Defined in: core/lib/stores/store.d.ts:218

When __type model not found, use the model If strict is setup this parameter is not used

Default​

true

Inherited from​

StoreParameters.defaultModel


forceModel?​

optional forceModel?: boolean

Defined in: core/lib/stores/store.d.ts:224

If set, Store will ignore the __type

Default​

false

Inherited from​

StoreParameters.forceModel


modelAliases?​

optional modelAliases?: object

Defined in: core/lib/stores/store.d.ts:234

Model Aliases to allow easier rename of Model

Index Signature​

[key: string]: string

Inherited from​

StoreParameters.modelAliases


models?​

optional models?: string[]

Defined in: core/lib/stores/store.d.ts:202

Models managed by this Store.

Default​

["Webda/RegistryEntry"]

Inherited from​

StoreParameters.models


noCache?​

optional noCache?: boolean

Defined in: core/lib/stores/store.d.ts:240

Disable default memory cache

Inherited from​

StoreParameters.noCache


slowQueryThreshold​

slowQueryThreshold: number

Defined in: core/lib/stores/store.d.ts:230

Slow query threshold

Default​

30000

Inherited from​

StoreParameters.slowQueryThreshold


strict?​

optional strict?: boolean

Defined in: core/lib/stores/store.d.ts:211

Allow to load object that does not have the type data

If set to true, then the Store will only managed the defined _model and no model extending this one

Default​

false

Inherited from​

StoreParameters.strict


table​

table: string

Defined in: postgres/src/sqlstore.ts:12


type​

type: string

Defined in: core/lib/services/serviceparameters.d.ts:8

Type of the service

Inherited from​

StoreParameters.type

Methods​

load()​

load(params): this

Defined in: postgres/src/sqlstore.ts:20

Parameters​

params​

any

raw parameters

Returns​

this

this

Overrides​

StoreParameters.load


update()​

update(params, delta): this

Defined in: core/lib/services/serviceparameters.d.ts:25

Update parameters and call watchers if a parameter was changed

Parameters​

params​

any

the service parameters

delta​

any

the delta

Returns​

this

this for chaining

Inherited from​

StoreParameters.update


with()​

with(callback): this

Defined in: core/lib/services/serviceparameters.d.ts:31

Watch for changes on the parameters and call watchers when a parameter is changed

Parameters​

callback​

(params) => void

the callback function

Returns​

this

this for chaining

Inherited from​

StoreParameters.with