Skip to content

Commit

Permalink
update csv_json_sqlite.md
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidaty committed Jun 23, 2022
1 parent 406241c commit 343b9a4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docs/csv_json_sqlite.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,19 @@ To support both table and column metadata, `zsv` uses a
[database-friendly approach](db.schema.json) this supports table metadata
(such as table name and indexes) through a tuple (ordered list)
containing two elements (metadata followed by data).

Future enhancements could support table-level validations/constraints and other
features, and this approach could be merged with the aforementioned [row-based
At the table level, this approach could also be merged with the aforementioned [row-based
schema](csv.schema.json) to support row-level or cell-level metadata, to
represent spreadsheet data such as cell-level formatting.

The `zsv` conversion implementations as of this writing are limited; future improvements under consideration include:
* automatic determination / suggestion of column data type
* conversion/coercion of text to the specified data type for the corresponding column
* load to other database back-end e.g. mssql or redshift

Future enhancements to both the schema and the conversion implementation under consideration
include support for other table-level features such as validations/constraints, other database object types
such as views, and whole-database conversion.

```shell
# Convert CSV to JSON
# Additionally, specify a non-unique index on Population and a unique index on the combination of City, Country and Region
Expand Down

0 comments on commit 343b9a4

Please sign in to comment.