How to use the pybigquery.sqlalchemy_bigquery.BigQueryDDLCompiler function in pybigquery

To help you get started, we’ve selected a few pybigquery examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mxmzdlv / pybigquery / pybigquery / sqlalchemy_bigquery.py View on Github external
def get_column_specification(self, column, **kwargs):
        colspec = super(BigQueryDDLCompiler, self).get_column_specification(column, **kwargs)
        if column.doc is not None:
            colspec = '{} OPTIONS(description={})'.format(colspec, self.preparer.quote(column.doc))
        return colspec