Oracle Database implementation of ``TIMESTAMP``, which supports additional Oracle Database-specific modes .. versionadded:: 2.0
| 295 | |
| 296 | |
| 297 | class 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 | |
| 325 | class ROWID(sqltypes.TypeEngine): |