Lifecycle methods
check
The check method reads every row and index entry of the committed database, and every page that holds them, and resolves when all of them are sound. Read more.
close
The close method detaches this Client and releases its prepared statements and Worker. Other Clients for the same OPFS name stay connected; ownership transfers automatically when necessary. Repeated calls share the same asynchronous cleanup. A closed Client cannot resume; create a new one and recreate its prepared statements and subscriptions. Closing is not a cancellation or rollback guarantee for a write already in flight. Read more.
getSchema
The getSchema method reads the database's tables, with their columns, primary keys, and indexes, as the engine's catalog holds them. Read more.
setSchema
The setSchema method makes the database's tables, columns, primary keys, and indexes match a Schema, as getSchema returns one, in one change that commits whole or not at all. Read more.