MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_or_replace

Method test_or_replace

test/sql/test_table_via_select.py:228–239  ·  view source on GitHub ↗
(self, src_table)

Source from the content-addressed store, hash-verified

226 )
227
228 def test_or_replace(self, src_table):
229 src = src_table
230 stmt = CreateView(
231 select(src.c.id, src.c.name),
232 "dst",
233 or_replace=True,
234 )
235
236 self.assert_compile(
237 stmt,
238 "CREATE OR REPLACE VIEW dst AS SELECT src.id, src.name FROM src",
239 )
240
241 def test_join_with_binds_rendered_inline(self, src_two_tables):
242 a, b = src_two_tables

Callers

nothing calls this directly

Calls 3

CreateViewClass · 0.90
selectFunction · 0.90
assert_compileMethod · 0.80

Tested by

no test coverage detected