MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / separate_schema_translates.py

File separate_schema_translates.py

examples/sharding/separate_schema_translates.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""Illustrates sharding using a single database with multiple schemas,
2where a different "schema_translates_map" can be used for each shard.
3
4In this example we will set a "shard id" at all times.

Callers

nothing calls this directly

Calls 9

create_engineFunction · 0.90
sessionmakerClass · 0.90
mainFunction · 0.70
connectMethod · 0.45
existsMethod · 0.45
removeMethod · 0.45
exec_driver_sqlMethod · 0.45
execution_optionsMethod · 0.45
configureMethod · 0.45

Tested by

no test coverage detected