Iskra API Reference
Preparing search index...
web-kit/src
DbFeature
Class DbFeature<TSchema>
Type Parameters
TSchema
extends
Record
<
string
,
unknown
>
=
Record
<
string
,
never
>
Implements
Feature
Index
Constructors
constructor
Properties
adapter
db
name
Methods
initialize
ping
shutdown
Constructors
constructor
new
DbFeature
<
TSchema
extends
Record
<
string
,
unknown
>
=
Record
<
string
,
never
>
>
(
config
:
DbConfig
,
)
:
DbFeature
<
TSchema
>
Type Parameters
TSchema
extends
Record
<
string
,
unknown
>
=
Record
<
string
,
never
>
Parameters
config
:
DbConfig
Returns
DbFeature
<
TSchema
>
Properties
Readonly
adapter
adapter
:
"postgres"
|
"mysql"
|
"sqlite"
db
db
:
WebKitDrizzleDb
<
TSchema
>
name
name
:
string
= 'db'
Methods
initialize
initialize
(
kernel
:
Kernel
)
:
Promise
<
void
>
Parameters
kernel
:
Kernel
Returns
Promise
<
void
>
ping
ping
()
:
Promise
<
void
>
One round-trip to the database (used by HealthCheckFeature).
Returns
Promise
<
void
>
shutdown
shutdown
()
:
Promise
<
void
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
adapter
db
name
Methods
initialize
ping
shutdown
Iskra API Reference
Loading...
One round-trip to the database (used by HealthCheckFeature).