买服务器上雨云
由超大带宽雨云提供赞助Applicable version
>=3.4.1

Applicable version
>3.3.7 & <=3.4.1
cd dev path
Enable node environment: cmd execute node
Execute script
const { PGlite } = await import("@electric-sql/pglite");
const { createServer } = await import("pglite-server");
const start = async () => {
// Connect to the database, the database address is your own physical address
const db = new PGlite('/Users/HiramWong/Library/Application\ Support/zyfun/database');
await db.waitReady;
const PORT = 5432;
const pgServer = createServer(db);
pgServer.listen(PORT, () => {
console.log(`Server bound to port ${PORT}`);
});
}
start();
Follow
Navicat
