@wxn0brp/db
Version:
A lightweight file-based database management system that supports CRUD operations, custom queries and relations.
13 lines (12 loc) • 637 B
TypeScript
import { Remote } from "@wxn0brp/db-client/remote";
import { ValtheraCompatible } from "@wxn0brp/db-core/types/valthera";
/**
* Creates a database instance based on the provided configuration.
* If the configuration is an object, it creates a DataBaseRemote instance.
* If the configuration is a string starting with "http", it also creates a DataBaseRemote instance.
* Otherwise, it creates a DataBase instance.
*
* @param cfg - The configuration object or string for the database.
* @returns A new instance of DataBaseRemote or DataBase.
*/
export declare function ValtheraAutoCreate(cfg: string | Remote): ValtheraCompatible;