<!-- .github/pull_request_template.md --> ## Description <!-- Provide a clear description of the changes in this PR --> ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin. Co-authored-by: Vasilije <8619304+Vasilije1990@users.noreply.github.com>
17 lines
568 B
Python
17 lines
568 B
Python
from cognee.infrastructure.databases.relational import (
|
|
create_db_and_tables as create_relational_db_and_tables,
|
|
)
|
|
from cognee.infrastructure.databases.vector.pgvector import (
|
|
create_db_and_tables as create_pgvector_db_and_tables,
|
|
)
|
|
|
|
|
|
async def setup():
|
|
"""
|
|
Set up the necessary databases and tables.
|
|
|
|
This function asynchronously creates a relational database and its corresponding tables,
|
|
followed by creating a PGVector database and its tables.
|
|
"""
|
|
await create_relational_db_and_tables()
|
|
await create_pgvector_db_and_tables()
|