MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / insert_data

Method insert_data

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

Source from the content-addressed store, hash-verified

1455
1456 @classmethod
1457 def insert_data(cls, connection):
1458 connection.execute(
1459 cls.tables.t.insert(),
1460 {
1461 "dtme": datetime.datetime(2012, 5, 10, 12, 15, 25),
1462 "dt": datetime.date(2012, 5, 10),
1463 "tm": datetime.time(12, 15, 25),
1464 "intv": datetime.timedelta(seconds=570),
1465 "dttz": datetime.datetime(
1466 2012, 5, 10, 12, 15, 25, tzinfo=cls.TZ()
1467 ),
1468 },
1469 )
1470
1471 def _test(self, connection, expr, field="all", overrides=None):
1472 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