Skip to content

Commit

Permalink
Added array_type and uuid_data_type properties
Browse files Browse the repository at this point in the history
  • Loading branch information
kiraksi committed Nov 29, 2023
1 parent 39b0d66 commit 848c1e8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sqlalchemy_bigquery/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import sqlalchemy.testing.requirements
import sqlalchemy.testing.exclusions
from sqlalchemy.testing.exclusions import against, only_on

supported = sqlalchemy.testing.exclusions.open
unsupported = sqlalchemy.testing.exclusions.closed
Expand Down Expand Up @@ -135,6 +136,15 @@ def schemas(self):
named 'test_schema'."""

return unsupported()

@property
def array_type(self):
return only_on([lambda config: against(config, "postgresql")])

@property
def uuid_data_type(self):
"""Return databases that support the UUID datatype."""
return only_on(("postgresql >= 8.3", "mariadb >= 10.7.0"))

@property
def implicit_default_schema(self):
Expand Down

0 comments on commit 848c1e8

Please sign in to comment.