Created
March 17, 2025 18:27
-
-
Save brianc/b5e092325607bf6a010b9af9d8effcc6 to your computer and use it in GitHub Desktop.
Revisions
-
brianc created this gist
Mar 17, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ import pg from "pg"; const client = new pg.Client(); await client.connect(); const { rows } = await client.query("SELECT NOW()"); console.log("rows:", rows); await client.end(); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ { "name": "esmpgtest", "version": "1.0.0", "type": "module", "main": "index.js", "license": "MIT", "dependencies": { "pg": "^8.14.1" } }