Skip to content

Command for outputting a dump as NL objects #7

Closed

Description

@simonw

Rows are currently stored on disk in this format:

[1, "Simon"]
[2, "Cleo"]

You have to consult the accompanying metadata JSON file to find out what the column names are.

A command that streams out one of these dumps as newline separated objects with the column names as keys would be useful.

Activity

  1. simonw commented on Aug 15, 2022

    @simonw
    OwnerAuthor

    Potential design:

    sqlite-diffable objects data/rows.ndjson
    

    This would look for column info in data/rows.metadata.json.

    It would stream newline delimited output to standard out.

    -o filename could save to disk instead.

    An option to write it out as a JSON array of objects would be useful too - maybe called --array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions