@ezorm/proxy-node
v1.1.2
Published
Server-side lifecycle management for the Ezorm Rust proxy.
Readme
@ezorm/proxy-node
@ezorm/proxy-node starts and manages the packaged ezorm_proxy binary from server-side Node.js code.
Usage
import { ensureEzormProxy } from "@ezorm/proxy-node";
const { endpoint, close } = await ensureEzormProxy({
databaseUrl: process.env.DATABASE_URL!,
pool: {
minConnections: 1,
maxConnections: 8
}
});
console.log(endpoint);
await close();Notes
DATABASE_URLstays explicit.poolis optional and forwards pooled runtime settings into the managed proxy process.hostandportare optional and only needed when you want a stable endpoint.- The managed proxy serves pooled ORM CRUD plus
pushSchema/pullSchemafor SQLite, PostgreSQL, MySQL, and MSSQL. - Relation-aware
query(...),load(...), andloadMany(...)are not implemented on the pooled proxy runtime yet. - Hosted edge deployments still need an externally reachable proxy URL; this package manages local and self-hosted Node-side processes.
