mirror of
https://github.com/cpacker/MemGPT.git
synced 2025-06-03 04:30:22 +00:00
20 lines
359 B
Python
20 lines
359 B
Python
import os
|
|
|
|
from sqlalchemy import create_engine, MetaData
|
|
|
|
|
|
def main():
|
|
uri = os.environ.get(
|
|
"PGVECTOR_TEST_DB_URL",
|
|
"postgresql+pg8000://memgpt:memgpt@localhost:8888/memgpt",
|
|
)
|
|
|
|
engine = create_engine(uri)
|
|
meta = MetaData()
|
|
meta.reflect(bind=engine)
|
|
meta.drop_all(bind=engine)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|