Skip to content

Commit

Permalink
add client connect (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
kostasb authored Jul 31, 2024
1 parent 1511c9d commit b7d9a07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 020-Connect/020-JavaScript/030-drizzle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ import { Client } from 'pg';

const xata = getXataClient();
const client = new Client({ connectionString: xata.sql.connectionString });
await client.connect();
const db = drizzle(client);
```

Expand Down

0 comments on commit b7d9a07

Please sign in to comment.