Update postgres_impl_test.py
This commit is contained in:
@@ -1,8 +1,15 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import asyncpg
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
import pipmaster as pm
|
||||||
|
|
||||||
|
if not pm.is_installed("psycopg-pool"):
|
||||||
|
pm.install("psycopg-pool")
|
||||||
|
pm.install("psycopg[binary,pool]")
|
||||||
|
if not pm.is_installed("asyncpg"):
|
||||||
|
pm.install("asyncpg")
|
||||||
|
|
||||||
|
import asyncpg
|
||||||
import psycopg
|
import psycopg
|
||||||
from psycopg_pool import AsyncConnectionPool
|
from psycopg_pool import AsyncConnectionPool
|
||||||
from lightrag.kg.postgres_impl import PostgreSQLDB, PGGraphStorage
|
from lightrag.kg.postgres_impl import PostgreSQLDB, PGGraphStorage
|
||||||
|
Reference in New Issue
Block a user