You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Table.fields is currently an OrderedDict, but we can't make some operations off of an OrderedDict, like deserializing an entire row. We must create a class Schema, set it to Table.schema and use it internally whenever possible (like in pgimport and all functions that are currently calling load_schema - they should receive a Schema object instead).
We may need to check for schema serialization formats, such as datapackage, avro, protocol buffers etc. so we can serialize/deserialize these schema definitions to these formats (and maybe also SQL, at least for serialization, using postgresql and sqlite plugins' code).
The text was updated successfully, but these errors were encountered:
Table.fields
is currently anOrderedDict
, but we can't make some operations off of anOrderedDict
, like deserializing an entire row. We must create a classSchema
, set it toTable.schema
and use it internally whenever possible (like inpgimport
and all functions that are currently callingload_schema
- they should receive aSchema
object instead).I've created a basic implementation to start:
rows.fields
:We may need to check for schema serialization formats, such as datapackage, avro, protocol buffers etc. so we can serialize/deserialize these schema definitions to these formats (and maybe also SQL, at least for serialization, using postgresql and sqlite plugins' code).
The text was updated successfully, but these errors were encountered: