releases
1 row where "created_at" is on date 2021-06-19 sorted by created_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), published_at (date)
id | html_url | node_id | tag_name | target_commitish | name | draft | author | prerelease | created_at ▲ | published_at | body | repo | reactions |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
44904928 | https://github.com/simonw/sqlite-utils/releases/tag/3.10 | MDc6UmVsZWFzZTQ0OTA0OTI4 | 3.10 | main | 3.10 | 0 | simonw 9599 | 0 | 2021-06-19T16:09:29Z | 2021-06-19T16:13:11Z | This release introduces the Also new: sqlite-utils memoryThis example of ``` $ curl -s 'https://api.github.com/users/dogsheep/repos'\ | sqlite-utils memory - ' select full_name, forks_count, stargazers_count from stdin order by stargazers_count desc limit 5 ' -t full_name forks_count stargazers_count dogsheep/twitter-to-sqlite 12 225 dogsheep/github-to-sqlite 14 139 dogsheep/dogsheep-photos 5 116 dogsheep/dogsheep.github.io 7 90 dogsheep/healthkit-to-sqlite 4 85 ``` The tool works against files on disk as well. This example joins data from two CSV files:
Here the You can also use the Full documentation of this new feature is available in Querying data directly using an in-memory database. (#272) sqlite-utils insert --detect-typesThe sqlite-utils insert command can be used to insert data from JSON, CSV or TSV files into a SQLite database file. The new Other changes
|
sqlite-utils 140912432 | { "url": "https://api.github.com/repos/simonw/sqlite-utils/releases/44904928/reactions", "total_count": 3, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 1, "eyes": 1 } |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [releases] ( [html_url] TEXT, [id] INTEGER PRIMARY KEY, [node_id] TEXT, [tag_name] TEXT, [target_commitish] TEXT, [name] TEXT, [draft] INTEGER, [author] INTEGER REFERENCES [users]([id]), [prerelease] INTEGER, [created_at] TEXT, [published_at] TEXT, [body] TEXT, [repo] INTEGER REFERENCES [repos]([id]) , [reactions] TEXT); CREATE INDEX [idx_releases_repo] ON [releases] ([repo]); CREATE INDEX [idx_releases_author] ON [releases] ([author]);