File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 11<div align =" center " >
2- <h1 >deno-postgres</h1 >
3- <img src =" ./docs/deno-postgres.png " width =" 128 " style =" padding-bottom :20px ;" />
2+
3+ # deno-postgres
4+
5+ <img src =" ./docs/deno-postgres.png " width =" 164 " style =" padding-bottom :20px ;" />
46</div >
57
68<div align =" center " >
@@ -49,8 +51,8 @@ await client.connect();
4951}
5052
5153{
52- const result = await client
53- .queryArray ` SELECT ID, NAME FROM PEOPLE WHERE ID = ${1 } ` ;
54+ const result =
55+ await client .queryArray ` SELECT ID, NAME FROM PEOPLE WHERE ID = ${1 } ` ;
5456 console .log (result .rows ); // [[1, 'Carlos']]
5557}
5658
@@ -60,8 +62,8 @@ await client.connect();
6062}
6163
6264{
63- const result = await client
64- .queryObject ` SELECT ID, NAME FROM PEOPLE WHERE ID = ${1 } ` ;
65+ const result =
66+ await client .queryObject ` SELECT ID, NAME FROM PEOPLE WHERE ID = ${1 } ` ;
6567 console .log (result .rows ); // [{id: 1, name: 'Carlos'}]
6668}
6769
You can’t perform that action at this time.
0 commit comments