Skip to content

Create schema import/export functions #263

Description

@turicas

Example:

from rows.fields import detect_schema, load_schema

table1 = rows.import_from_csv('filename.csv')
schema = detect_schema(table1)

# after
table = rows.import_from_csv('filename.csv', schema=schema)
# or
table = rows.import_from_csv('filename.csv', schema=load_schema('schema.csv'))

Related to #237.

Tasks:

  • Create detect_schema function
  • Create load_schema function
  • Add support for forcing field types in CLI using --schema=filename.csv
  • Add schema parameter to create_table
  • Decide how to describe custom field classes

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions