From f8d6bd8d89d372c000c3e032bc33c63d5af62e83 Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Sun, 6 Feb 2022 11:22:09 -0800 Subject: [PATCH] rename --- .gitignore | 1 + Cargo.lock | 28 ++++++++++++++-------------- Cargo.toml | 2 +- tests/python/tests.py | 6 +++--- 4 files changed, 19 insertions(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index ea8c4bf..50ccb25 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /target +*.deb diff --git a/Cargo.lock b/Cargo.lock index 8cf1dcb..00053f9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -305,6 +305,20 @@ dependencies = [ "winapi", ] +[[package]] +name = "pgcat" +version = "0.1.0" +dependencies = [ + "async-trait", + "bb8", + "bytes", + "chrono", + "md-5", + "rand", + "sha-1", + "tokio", +] + [[package]] name = "pin-project-lite" version = "0.2.8" @@ -341,20 +355,6 @@ dependencies = [ "proc-macro2", ] -[[package]] -name = "rabbit" -version = "0.1.0" -dependencies = [ - "async-trait", - "bb8", - "bytes", - "chrono", - "md-5", - "rand", - "sha-1", - "tokio", -] - [[package]] name = "rand" version = "0.8.4" diff --git a/Cargo.toml b/Cargo.toml index bc8034a..d29a9c2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "rabbit" +name = "pgcat" version = "0.1.0" edition = "2021" diff --git a/tests/python/tests.py b/tests/python/tests.py index 34f1933..8eb47f6 100644 --- a/tests/python/tests.py +++ b/tests/python/tests.py @@ -1,11 +1,11 @@ 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.execute("SELECT $1", [1234]); +cur.execute("SELECT 1"); res = cur.fetchall() print(res) -conn.commit() \ No newline at end of file +# conn.commit() \ No newline at end of file