From b7d9a07e919a54107e17a9aee2635400a9dc2a28 Mon Sep 17 00:00:00 2001 From: Kostas Botsas Date: Wed, 31 Jul 2024 12:29:03 +0300 Subject: [PATCH] add client connect (#376) --- 020-Connect/020-JavaScript/030-drizzle.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/020-Connect/020-JavaScript/030-drizzle.mdx b/020-Connect/020-JavaScript/030-drizzle.mdx index f9cea375..c8fe4ba0 100644 --- a/020-Connect/020-JavaScript/030-drizzle.mdx +++ b/020-Connect/020-JavaScript/030-drizzle.mdx @@ -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); ```