11"""
2- Connection management for pysql -test.
2+ Connection management for pgsql -test.
33
44Provides the main entry point for setting up test database connections.
55"""
1212from dataclasses import dataclass
1313from typing import Any
1414
15- from pysql_test .admin import DbAdmin
16- from pysql_test .client import PgTestClient
17- from pysql_test .manager import PgTestConnector , generate_test_db_name
18- from pysql_test .types import ConnectionOptions , PgConfig , SeedContext
15+ from pgsql_test .admin import DbAdmin
16+ from pgsql_test .client import PgTestClient
17+ from pgsql_test .manager import PgTestConnector , generate_test_db_name
18+ from pgsql_test .types import ConnectionOptions , PgConfig , SeedContext
1919
2020logger = logging .getLogger (__name__ )
2121
@@ -83,7 +83,7 @@ def get_connections(
8383 """
8484 Set up a fresh PostgreSQL test database and return connection objects.
8585
86- This is the main entry point for pysql -test. It:
86+ This is the main entry point for pgsql -test. It:
8787 1. Creates a new isolated database with a UUID name
8888 2. Installs any requested extensions
8989 3. Runs seed adapters to populate the database
@@ -98,7 +98,7 @@ def get_connections(
9898 ConnectionResult with pg, db, admin, manager, and teardown function.
9999
100100 Example:
101- from pysql_test import get_connections, seed
101+ from pgsql_test import get_connections, seed
102102
103103 # Basic usage
104104 conn = get_connections()
@@ -122,7 +122,7 @@ def db():
122122 options = connection_options or {}
123123
124124 # Generate unique database name
125- prefix = options .get ("prefix" , "pysql_test_ " )
125+ prefix = options .get ("prefix" , "pgsql_test_ " )
126126 test_db_name = generate_test_db_name (prefix )
127127
128128 # Create admin connection to root database
0 commit comments