4040from google .cloud .sql .connector .lazy import LazyRefreshCache
4141from google .cloud .sql .connector .monitored_cache import MonitoredCache
4242import google .cloud .sql .connector .pg8000 as pg8000
43+ import google .cloud .sql .connector .psycopg as psycopg
4344import google .cloud .sql .connector .pymysql as pymysql
4445import google .cloud .sql .connector .pytds as pytds
4546from google .cloud .sql .connector .resolver import DefaultResolver
@@ -234,7 +235,7 @@ def connect(
234235 Example: "my-project:us-central1:my-instance"
235236
236237 driver (str): A string representing the database driver to connect
237- with. Supported drivers are pymysql, pg8000, and pytds.
238+ with. Supported drivers are pymysql, pg8000, psycopg, and pytds.
238239
239240 **kwargs: Any driver-specific arguments to pass to the underlying
240241 driver .connect call.
@@ -276,7 +277,8 @@ async def connect_async(
276277 Example: "my-project:us-central1:my-instance"
277278
278279 driver (str): A string representing the database driver to connect
279- with. Supported drivers are pymysql, asyncpg, pg8000, and pytds.
280+ with. Supported drivers are pymysql, asyncpg, pg8000, psycopg, and
281+ pytds.
280282
281283 **kwargs: Any driver-specific arguments to pass to the underlying
282284 driver .connect call.
@@ -288,7 +290,7 @@ async def connect_async(
288290 ValueError: Connection attempt with built-in database authentication
289291 and then subsequent attempt with IAM database authentication.
290292 KeyError: Unsupported database driver Must be one of pymysql, asyncpg,
291- pg8000, and pytds.
293+ pg8000, psycopg, and pytds.
292294 RuntimeError: Connector has been closed. Cannot connect using a closed
293295 Connector.
294296 """
@@ -357,6 +359,7 @@ async def connect_async(
357359 connect_func = {
358360 "pymysql" : pymysql .connect ,
359361 "pg8000" : pg8000 .connect ,
362+ "psycopg" : psycopg .connect ,
360363 "asyncpg" : asyncpg .connect ,
361364 "pytds" : pytds .connect ,
362365 }
0 commit comments