Skip to content

createPostgresStorage

function createPostgresStorage(options?): PostgresFlagsStorage;

Defined in: storage/postgres.ts:43

Create a Postgres-backed PostgresFlagsStorage. The table is created on first use.

Parameter Type
options? PostgresStorageOptions

PostgresFlagsStorage

import { createPostgresStorage } from "@xtandard/flags/storage/postgres";
const storage = createPostgresStorage({ connectionString: process.env.DATABASE_URL });