home / github

Menu
  • GraphQL API

commits

Table actions
  • GraphQL API for commits

4 rows where "author_date" is on date 2019-05-29

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: author_date (date), committer_date (date)

sha ▼ message author_date committer_date raw_author raw_committer repo author committer
00c5a49a87e1ef3e39bb7ec5ab61f7c17f9ecd60 Option to ignore inserts if primary key exists already Support for SQLite's INSERT OR IGNORE In the API layer it looks like this: fresh_db["test"].insert({"id": 1, "bar": 3}, ignore=True) For the CLI layer it looks like this: $ sqlite-utils insert data.db dogs dogs.json --ignore Closes #21 2019-05-29T04:15:57Z 2019-05-29T04:15:57Z Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 sqlite-utils 140912432 simonw 9599 simonw 9599
26b2cf3418f1e19b5436a7385c3945384838e594 Changelog for 1.1 + docs for --ignore/ignore=True 2019-05-29T05:06:22Z 2019-05-29T05:06:22Z Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 sqlite-utils 140912432 simonw 9599 simonw 9599
50e2f94b583436b1a6c54be04e78a3029de6b521 Ability to add a column that is a foreign key reference Python API: db["dogs"].add_column("species_id", fk="species") # or db["dogs"].add_column("species_id", fk="species", fk_col="ref") CLI: $ sqlite-utils add-column mydb.db dogs species_id --fk species # or $ sqlite-utils add-column mydb.db dogs species_id --fk species --fk-col ref Closes #16 2019-05-29T04:54:43Z 2019-05-29T04:54:43Z Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 sqlite-utils 140912432 simonw 9599 simonw 9599
7a3041b1adcb1c95f2edeb789e4b1ecac34f0eab Releasing 1.1 2019-05-29T05:12:03Z 2019-05-29T05:12:03Z Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 sqlite-utils 140912432 simonw 9599 simonw 9599

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [commits] (
   [sha] TEXT PRIMARY KEY,
   [message] TEXT,
   [author_date] TEXT,
   [committer_date] TEXT,
   [raw_author] TEXT REFERENCES [raw_authors]([id]),
   [raw_committer] TEXT REFERENCES [raw_authors]([id]),
   [repo] INTEGER REFERENCES [repos]([id]),
   [author] INTEGER REFERENCES [users]([id]),
   [committer] INTEGER REFERENCES [users]([id])
);
CREATE INDEX [idx_commits_committer]
                ON [commits] ([committer]);
CREATE INDEX [idx_commits_author]
                ON [commits] ([author]);
CREATE INDEX [idx_commits_repo]
                ON [commits] ([repo]);
CREATE INDEX [idx_commits_raw_committer]
                ON [commits] ([raw_committer]);
CREATE INDEX [idx_commits_raw_author]
                ON [commits] ([raw_author]);
Powered by Datasette · Queries took 376.94ms · About: simonw/datasette-graphql