@hasna/domains
Version:
Domain portfolio, registrar, marketplace, and DNS management for AI agents — CLI + MCP + HTTP API + SDK, shared account API and PostgreSQL
16 lines • 736 B
TypeScript
/**
* Database connection for open-domains
*/
import { Database } from "bun:sqlite";
/**
* The default data root — the effective local data home (see `app-home.ts`).
* Env overrides (HASNA_DOMAINS_DB_PATH wins over the legacy DOMAINS_DB_PATH
* alias) and the exact-app overrides (HASNA_DOMAINS_HOME / HASNA_DOMAINS_DIR
* win over DOMAINS_HOME / DOMAINS_DIR) are honored unchanged and win over the
* default. This low-level module is used only by explicit migration/unit
* fixtures; normal clients reject these settings.
*/
export declare function getDbPath(env?: NodeJS.ProcessEnv): string;
export declare function getDatabase(): Database;
export declare function closeDatabase(): void;
//# sourceMappingURL=database.d.ts.map