We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
is_nullable
NULLABLE
1 parent 9c06b35 commit c406610Copy full SHA for c406610
bigquery/google/cloud/bigquery/dbapi/cursor.py
@@ -76,7 +76,7 @@ def _set_description(self, schema):
76
internal_size=None,
77
precision=None,
78
scale=None,
79
- null_ok=field.mode == 'NULLABLE')
+ null_ok=field.is_nullable)
80
for field in schema])
81
82
def _set_rowcount(self, query_results):
bigquery/google/cloud/bigquery/schema.py
@@ -65,6 +65,11 @@ def mode(self):
65
"""
66
return self._mode
67
68
+ @property
69
+ def is_nullable(self):
70
+ """Check whether 'mode' is 'nullable'."""
71
+ return self._mode == 'NULLABLE'
72
+
73
@property
74
def description(self):
75
"""Optional[str]: Description for the field."""
0 commit comments