File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11from sqlspec .adapters .asyncpg import AsyncpgConfig
22
3+ __all__ = ("test_single_and_multiple_configs" , )
4+
35
46def test_single_and_multiple_configs () -> None :
57 # start-example
Original file line number Diff line number Diff line change 11from sqlspec .adapters .asyncmy import AsyncmyConfig
22from sqlspec .adapters .asyncpg import AsyncpgConfig
33
4+ __all__ = ("test_multi_config" , )
5+
46
57def test_multi_config () -> None :
68 # start-example
79 configs = [
810 AsyncpgConfig (
911 bind_key = "postgres" ,
1012 pool_config = {"dsn" : "postgresql://..." },
11- migration_config = {"script_location" : "migrations/postgres" , "enabled" : True }
13+ migration_config = {"script_location" : "migrations/postgres" , "enabled" : True },
1214 ),
1315 AsyncmyConfig (
1416 bind_key = "mysql" ,
1517 pool_config = {"host" : "localhost" , "database" : "mydb" },
16- migration_config = {"script_location" : "migrations/mysql" , "enabled" : True }
18+ migration_config = {"script_location" : "migrations/mysql" , "enabled" : True },
1719 ),
1820 AsyncpgConfig (
1921 bind_key = "analytics" ,
2022 pool_config = {"dsn" : "postgresql://analytics/..." },
21- migration_config = {"script_location" : "migrations/analytics" , "enabled" : True }
23+ migration_config = {"script_location" : "migrations/analytics" , "enabled" : True },
2224 ),
2325 ]
2426 # end-example
You can’t perform that action at this time.
0 commit comments