Skip to main content

RelationalStoreHost

@webda/sql


Interface: RelationalStoreHost

Defined in: packages/sql/src/relational/support.ts:147

What the support reads from the store

Properties​

_modelsHierarchy​

readonly _modelsHierarchy: object

Defined in: packages/sql/src/relational/support.ts:163

The models of the store with their hierarchy depth, built at resolve time by Store

Index Signature​

[identifier: string]: number

Methods​

getName()​

getName(): string

Defined in: packages/sql/src/relational/support.ts:151

Get the name

Returns​

string


getParameters()​

getParameters(): RelationalLayoutParameters

Defined in: packages/sql/src/relational/support.ts:159

Get the parameters

Returns​

RelationalLayoutParameters


jsonTableOf()?​

optional jsonTableOf(store, model): string | undefined

Defined in: packages/sql/src/relational/support.ts:171

The JSON table of a model served by a JSON store of the same engine on the same database, with a table per model (foreignKeysToJsonb)

Parameters​

store​

Store<StoreParameters, StoreEvents> | undefined

the store serving the model, undefined without a Registry

model​

ModelClass

the model

Returns​

string | undefined

the table name, undefined when no foreign key can reference it


log()​

log(level, ...args): void

Defined in: packages/sql/src/relational/support.ts:155

Log operation

Parameters​

level​

any

args​

...any[]

Returns​

void