acreate_schema() — langchain Function Reference
Architecture documentation for the acreate_schema() function in _sql_record_manager.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 08d88f20_7879_4e9d_8810_7fbdd02514fb["acreate_schema()"] 9d7938c1_1c25_4cae_be80_9fc00a5ed077["SQLRecordManager"] 08d88f20_7879_4e9d_8810_7fbdd02514fb -->|defined in| 9d7938c1_1c25_4cae_be80_9fc00a5ed077 style 08d88f20_7879_4e9d_8810_7fbdd02514fb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/indexes/_sql_record_manager.py lines 156–163
async def acreate_schema(self) -> None:
"""Create the database schema."""
if not isinstance(self.engine, AsyncEngine):
msg = "This method is not supported for sync engines."
raise AssertionError(msg) # noqa: TRY004
async with self.engine.begin() as session:
await session.run_sync(Base.metadata.create_all)
Domain
Subdomains
Source
Frequently Asked Questions
What does acreate_schema() do?
acreate_schema() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/indexes/_sql_record_manager.py.
Where is acreate_schema() defined?
acreate_schema() is defined in libs/langchain/langchain_classic/indexes/_sql_record_manager.py at line 156.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free