

@classmethod
def schema_from_record(cls, record):
    'Given a dict representing a record instance to be inserted into\n        BigQuery, calculate the schema.\n\n        Parameters\n        ----------\n        record : dict\n            representing a record to be inserted into big query,\n            where all keys are ``str`` objects (representing column names in\n            the record) and all values are of type ``int``, ``str``,\n            ``unicode``, ``float``, ``bool``, ``datetime``, or ``dict``. A\n            ``dict`` value represents a record, and must conform to the same\n            restrictions as record.\n\n        Returns\n        -------\n        list\n            BigQuery schema\n\n        Notes\n        -----\n        Results are undefined if a different value type is provided for a\n        repeated field: E.g.\n\n        >>> { rfield: [ { x: 1}, {x: "a string"} ] } # undefined!\n        '
    from bigquery.schema_builder import schema_from_record
    return schema_from_record(cls)

dataset/ETHPy150Open tylertreat/BigQuery-Python/bigquery/client.py BigQueryClient.schema_from_record/VarMisuse@27/332 `record`->`cls`