createPostgresStorage
function createPostgresStorage(options?): PostgresFlagsStorage;Defined in: storage/postgres.ts:43
Create a Postgres-backed PostgresFlagsStorage. The table is created on first use.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options? |
PostgresStorageOptions |
Returns
Section titled “Returns”Example
Section titled “Example”import { createPostgresStorage } from "@xtandard/flags/storage/postgres";
const storage = createPostgresStorage({ connectionString: process.env.DATABASE_URL });