TinyBase logoTinyBase

delTablesSchema

The delTablesSchema method lets you remove the TablesSchema of the Store.

delTablesSchema(): this
returnsthis

A reference to the Store.

Example

This example removes the TablesSchema of a Store.

import {createStore} from 'tinybase';

const store = createStore().setTablesSchema({
  pets: {species: {type: 'string'}},
});
store.delTablesSchema();
console.log(store.getTablesSchemaJson());
// -> '{}'

Since

v1.0.0