DpcTabularValues
The DpcTabularValues type describes the configuration for handling Values in a database-oriented Persister that is operating in tabular mode.
{
load?: boolean;
save?: boolean;
tableName?: string;
}| Type | Description | |
|---|---|---|
load? | boolean | |
save? | boolean | |
tableName? | string | The optional name of the database table from and to which the |
Note that both loading and saving of Values from and to the database are disabled by default.
The 'Dpc' prefix indicates that this type is used within the DatabasePersisterConfig type.
Example
When applied to a database Persister, this DatabasePersisterConfig will load and save the data of a Store's Values into a database table called 'my_tinybase_values'.
import type {DatabasePersisterConfig} from 'tinybase';
export const databasePersisterConfig: DatabasePersisterConfig = {
mode: 'tabular',
values: {
load: true,
save: true,
tableName: 'my_tinybase_values',
},
};
Since
v4.0.0