You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/api.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,21 @@ Path to the directory for storing the Postgres database. You can provide a URI s
90
90
})
91
91
```
92
92
93
+
-`startParams?: string[]` <br />
94
+
An array of strings that will be passed to the Postgres process. This is the set of parameters one would pass to a native PostgreSQL instance.
95
+
96
+
```ts
97
+
import { PGlite } from'@electric-sql/pglite'
98
+
99
+
const pg =awaitPGlite.create({
100
+
startParams: [
101
+
...PGlite.defaultStartParams,
102
+
'-c',
103
+
'application_name=My awesome backend',
104
+
],
105
+
})
106
+
```
107
+
93
108
#### `options.extensions`
94
109
95
110
PGlite and Postgres extensions are loaded into a PGLite instance on start, and can include both a WASM build of a Postgres extension and/or a PGlite client plugin.
0 commit comments