From 73416e3aaf1d0dd55a596260802cb72f734e3d38 Mon Sep 17 00:00:00 2001 From: Elijah Date: Wed, 18 Dec 2024 20:27:29 +0000 Subject: [PATCH] what was that pyscopg mess? --- reflex/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reflex/config.py b/reflex/config.py index 452e182f7..d91714d3e 100644 --- a/reflex/config.py +++ b/reflex/config.py @@ -83,7 +83,7 @@ class DBConfig(Base): ) @classmethod - def postgresql_psycopg2( + def postgresql_psycopg( cls, database: str, username: str, @@ -91,7 +91,7 @@ class DBConfig(Base): host: str | None = None, port: int | None = 5432, ) -> DBConfig: - """Create an instance with postgresql+psycopg2 engine. + """Create an instance with postgresql+psycopg engine. Args: database: Database name. @@ -104,7 +104,7 @@ class DBConfig(Base): DBConfig instance. """ return cls( - engine="postgresql+psycopg2", + engine="postgresql+psycopg", username=username, password=password, host=host,