Skip to content

Commit 447704e

Browse files
Fix engine import in documentation
1 parent ec8bc28 commit 447704e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/customization.qmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,14 @@ Here's an entity-relationship diagram (ERD) of the current core database schema,
207207
import sys
208208
sys.path.append("..")
209209
from utils.core.models import *
210-
from utils.core.db import engine
210+
from utils.core.db import get_connection_url
211+
from sqlmodel import create_engine
211212
from sqlalchemy import MetaData
212213
from sqlalchemy_schemadisplay import create_schema_graph
213214
214215
# Create the directed graph
215216
graph = create_schema_graph(
216-
engine=engine,
217+
engine=create_engine(get_connection_url()),
217218
metadata=SQLModel.metadata,
218219
show_datatypes=True,
219220
show_indexes=True,

0 commit comments

Comments
 (0)