This commit is contained in:
Lev Kokotov
2022-02-06 11:22:09 -08:00
parent 99d3e0b803
commit f8d6bd8d89
4 changed files with 19 additions and 18 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
/target /target
*.deb

28
Cargo.lock generated
View File

@@ -305,6 +305,20 @@ dependencies = [
"winapi", "winapi",
] ]
[[package]]
name = "pgcat"
version = "0.1.0"
dependencies = [
"async-trait",
"bb8",
"bytes",
"chrono",
"md-5",
"rand",
"sha-1",
"tokio",
]
[[package]] [[package]]
name = "pin-project-lite" name = "pin-project-lite"
version = "0.2.8" version = "0.2.8"
@@ -341,20 +355,6 @@ dependencies = [
"proc-macro2", "proc-macro2",
] ]
[[package]]
name = "rabbit"
version = "0.1.0"
dependencies = [
"async-trait",
"bb8",
"bytes",
"chrono",
"md-5",
"rand",
"sha-1",
"tokio",
]
[[package]] [[package]]
name = "rand" name = "rand"
version = "0.8.4" version = "0.8.4"

View File

@@ -1,5 +1,5 @@
[package] [package]
name = "rabbit" name = "pgcat"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"

View File

@@ -1,11 +1,11 @@
import psycopg2 import psycopg2
conn = psycopg2.connect("postgres://random:password@127.0.0.1:5433/db") conn = psycopg2.connect("postgres://random:password@127.0.0.1:6432/db")
cur = conn.cursor() cur = conn.cursor()
cur.execute("SELECT $1", [1234]); cur.execute("SELECT 1");
res = cur.fetchall() res = cur.fetchall()
print(res) print(res)
conn.commit() # conn.commit()