import { type DatabaseConfig } from "https://deno.land/x/aloedb@0.9.0/lib/types.ts";
Database initialization config
Properties
Automatically save data to the file after inserting, updating and deleting documents.
If path
specified, data will be read from the file, but new data will not be written.
Optimize data writing. If enabled, the data will be written many times faster in case of a large number of operations. Disable it if you want the methods to be considered executed only when the data is written to a file. (Default: true)
optional
validator: ValidatorRuntime documents validation function. If the document does not pass the validation, just throw the error. Works well with Superstruct!