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

Method insert_data

test/dialect/postgresql/test_query.py:1387–1399  ·  view source on GitHub ↗
(cls, connection)

Source from the content-addressed store, hash-verified

1385
1386 @classmethod
1387 def insert_data(cls, connection):
1388 connection.execute(
1389 cls.tables.t.insert(),
1390 {
1391 "dtme": datetime.datetime(2012, 5, 10, 12, 15, 25),
1392 "dt": datetime.date(2012, 5, 10),
1393 "tm": datetime.time(12, 15, 25),
1394 "intv": datetime.timedelta(seconds=570),
1395 "dttz": datetime.datetime(
1396 2012, 5, 10, 12, 15, 25, tzinfo=cls.TZ()
1397 ),
1398 },
1399 )
1400
1401 def _test(self, connection, expr, field="all", overrides=None):
1402 t = self.tables.t

Callers

nothing calls this directly

Calls 5

executeMethod · 0.45
insertMethod · 0.45
datetimeMethod · 0.45
dateMethod · 0.45
timeMethod · 0.45

Tested by

no test coverage detected