bach.Series.get_db_dtype

classmethod get_db_dtype

(dialect)

[source]

Give the database type used to store values of this Series, for the given database dialect.

Raises

DatabaseNotSupportedException – If the Series subclass doesn’t support the database dialect.

Returns

Database type as string, or None if this Series database type is a structural type whose exact type depends on the data of the subtypes (e.g. SeriesList will return None on BigQuery, as it can handle all ARRAY<*> subtypes)

Return type

Optional[str]

note

Multiple Series types might return the same db_dtype. For example on BigQuery SeriesUuid, SeriesJson, and SeriesString will all return ‘STRING’. As we use the STRING database type to store all of those value types.