diff --git a/src/riverqueue/drivers/sqlcdb/__init__.py b/src/riverqueue/drivers/sqlalchemy/__init__.py similarity index 100% rename from src/riverqueue/drivers/sqlcdb/__init__.py rename to src/riverqueue/drivers/sqlalchemy/__init__.py diff --git a/src/riverqueue/drivers/sqlcdb/models.py b/src/riverqueue/drivers/sqlalchemy/models.py similarity index 100% rename from src/riverqueue/drivers/sqlcdb/models.py rename to src/riverqueue/drivers/sqlalchemy/models.py diff --git a/src/riverqueue/drivers/sqlcdb/pg_misc.py b/src/riverqueue/drivers/sqlalchemy/pg_misc.py similarity index 100% rename from src/riverqueue/drivers/sqlcdb/pg_misc.py rename to src/riverqueue/drivers/sqlalchemy/pg_misc.py diff --git a/src/riverqueue/drivers/sqlcdb/pg_misc.sql b/src/riverqueue/drivers/sqlalchemy/pg_misc.sql similarity index 100% rename from src/riverqueue/drivers/sqlcdb/pg_misc.sql rename to src/riverqueue/drivers/sqlalchemy/pg_misc.sql diff --git a/src/riverqueue/drivers/sqlcdb/river_job.py b/src/riverqueue/drivers/sqlalchemy/river_job.py similarity index 100% rename from src/riverqueue/drivers/sqlcdb/river_job.py rename to src/riverqueue/drivers/sqlalchemy/river_job.py diff --git a/src/riverqueue/drivers/sqlcdb/river_job.sql b/src/riverqueue/drivers/sqlalchemy/river_job.sql similarity index 100% rename from src/riverqueue/drivers/sqlcdb/river_job.sql rename to src/riverqueue/drivers/sqlalchemy/river_job.sql diff --git a/src/riverqueue/drivers/sqlcdb/sqlc_driver.py b/src/riverqueue/drivers/sqlalchemy/sqlalchemy_driver.py similarity index 97% rename from src/riverqueue/drivers/sqlcdb/sqlc_driver.py rename to src/riverqueue/drivers/sqlalchemy/sqlalchemy_driver.py index 716a04d..97c76a7 100644 --- a/src/riverqueue/drivers/sqlcdb/sqlc_driver.py +++ b/src/riverqueue/drivers/sqlalchemy/sqlalchemy_driver.py @@ -7,7 +7,7 @@ from . import river_job, pg_misc -class SqlcDriver(Driver): +class SqlAlchemyDriver(Driver): def __init__(self, session): self.session = session self.pg_misc_querier = pg_misc.Querier(session) diff --git a/tests/driver/sqlcdb/sqlc_driver_test.py b/tests/driver/sqlalchemy/sqlalchemy_driver_test.py similarity index 96% rename from tests/driver/sqlcdb/sqlc_driver_test.py rename to tests/driver/sqlalchemy/sqlalchemy_driver_test.py index 1c96c12..4f120c7 100644 --- a/tests/driver/sqlcdb/sqlc_driver_test.py +++ b/tests/driver/sqlalchemy/sqlalchemy_driver_test.py @@ -5,7 +5,7 @@ from riverqueue.client import Client from riverqueue.models import InsertOpts, UniqueOpts -from riverqueue.drivers.sqlcdb.sqlc_driver import SqlcDriver +from riverqueue.drivers.sqlalchemy.sqlalchemy_driver import SqlAlchemyDriver from client_test import SimpleArgs from sqlalchemy import text @@ -14,7 +14,7 @@ def driver(engine): with engine.begin() as conn: conn.execute(text("SET search_path TO public")) - yield SqlcDriver(conn) + yield SqlAlchemyDriver(conn) @pytest.fixture