TinyBase logoTinyBase

delTablesSchema

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

delTablesSchema(): Store
returnsStore

A reference to the Store.

Example

This example removes the TablesSchema of a Store.

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