mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-12-04 19:06:51 +00:00
Update age_impl.py
This commit is contained in:
parent
09c55032bd
commit
af245eb73e
@ -6,6 +6,14 @@ import sys
|
|||||||
from contextlib import asynccontextmanager
|
from contextlib import asynccontextmanager
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import Any, Dict, List, NamedTuple, Optional, Tuple, Union
|
from typing import Any, Dict, List, NamedTuple, Optional, Tuple, Union
|
||||||
|
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 psycopg
|
import psycopg
|
||||||
from psycopg.rows import namedtuple_row
|
from psycopg.rows import namedtuple_row
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user