MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / TIMESTAMP

Class TIMESTAMP

lib/sqlalchemy/dialects/oracle/types.py:297–322  ·  view source on GitHub ↗

Oracle Database implementation of ``TIMESTAMP``, which supports additional Oracle Database-specific modes .. versionadded:: 2.0

Source from the content-addressed store, hash-verified

295
296
297class TIMESTAMP(sqltypes.TIMESTAMP):
298 """Oracle Database implementation of ``TIMESTAMP``, which supports
299 additional Oracle Database-specific modes
300
301 .. versionadded:: 2.0
302
303 """
304
305 def __init__(self, timezone: bool = False, local_timezone: bool = False):
306 """Construct a new :class:`_oracle.TIMESTAMP`.
307
308 :param timezone: boolean. Indicates that the TIMESTAMP type should
309 use Oracle Database's ``TIMESTAMP WITH TIME ZONE`` datatype.
310
311 :param local_timezone: boolean. Indicates that the TIMESTAMP type
312 should use Oracle Database's ``TIMESTAMP WITH LOCAL TIME ZONE``
313 datatype.
314
315
316 """
317 if timezone and local_timezone:
318 raise exc.ArgumentError(
319 "timezone and local_timezone are mutually exclusive"
320 )
321 super().__init__(timezone=timezone)
322 self.local_timezone = local_timezone
323
324
325class ROWID(sqltypes.TypeEngine):

Callers 1

get_multi_columnsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected