MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / setup_options

Function setup_options

lib/sqlalchemy/testing/plugin/plugin_base.py:59–237  ·  view source on GitHub ↗
(make_option)

Source from the content-addressed store, hash-verified

57
58
59def setup_options(make_option):
60 make_option(
61 "--log-info",
62 action="callback",
63 type=str,
64 callback=_log,
65 help="turn on info logging for <LOG> (multiple OK)",
66 )
67 make_option(
68 "--log-debug",
69 action="callback",
70 type=str,
71 callback=_log,
72 help="turn on debug logging for <LOG> (multiple OK)",
73 )
74 make_option(
75 "--db",
76 action="append",
77 type=str,
78 dest="db",
79 help="Use prefab database uri. Multiple OK, "
80 "first one is run by default.",
81 )
82 make_option(
83 "--dbs",
84 action="callback",
85 zeroarg_callback=_list_dbs,
86 help="List available prefab dbs",
87 )
88 make_option(
89 "--dburi",
90 action="append",
91 type=str,
92 dest="dburi",
93 help="Database uri. Multiple OK, first one is run by default.",
94 )
95 make_option(
96 "--dbdriver",
97 action="append",
98 type=str,
99 dest="dbdriver",
100 help="Additional database drivers to include in tests. "
101 "These are linked to the existing database URLs by the "
102 "provisioning system.",
103 )
104 make_option(
105 "--dropfirst",
106 action="store_true",
107 dest="dropfirst",
108 help="Drop all tables in the target database first",
109 )
110 make_option(
111 "--disable-asyncio",
112 action="store_true",
113 help="disable test / fixtures / provisioning running in asyncio",
114 )
115 make_option(
116 "--backend-only",

Callers

nothing calls this directly

Calls 3

make_optionFunction · 0.85
_set_tag_includeFunction · 0.85
_set_tag_excludeFunction · 0.85

Tested by

no test coverage detected