feat: add PGlite as a client-side database implementation#541
feat: add PGlite as a client-side database implementation#541
Conversation
Agent-Logs-Url: https://github.com/pubkey/client-side-databases/sessions/24850991-bc6e-43e9-8de2-c1b851331a1d Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>
|
…to CI Agent-Logs-Url: https://github.com/pubkey/client-side-databases/sessions/a862d35f-46f2-4322-8f72-969f43042e13 Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>
Fixed in dcd7249:
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot fix the ci tests, run them on your agent device: [1] got console errors: |
… wasm/data assets Agent-Logs-Url: https://github.com/pubkey/client-side-databases/sessions/2b1e7173-ccdb-4e07-a5c8-571da1c75c29 Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>
Fixed in 7c189f2. Two changes were needed: Root cause: webpack replaces Fix 1 — angular.json assets: Added Fix 2 — database.service.ts: Pre-fetch and compile the WASM modules via explicit HTTP URLs before constructing Verified locally: Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
@electric-sql/pglite@0.4.3dependencyprojects/pgliteproject with all required source filesangular.jsonpackage.json(build:pglite,dev:pglite,start:pglite,client:pglite,test:pglite,analyze:pglite)projects/pglite/.eslintrc.json; remove unused importtest:pglitestep to CI workflow*.wasmandpglite.datafromnode_modules/@electric-sql/pglite/dist/as Angular assets (copied to dist root)database.service.tsand pass them aspgliteWasmModule,initdbWasmModule,fsBundleto PGlite — bypasses webpack'simport.meta.url→file://substitution that caused the streaming-compile errornpm run test:pglitepasses locally:2 passed (6m 47s)