home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

13 rows where "updated_at" is on date 2022-01-11 and user = 9599 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: issue_url, body, updated_at (date)

issue 8

  • Add documentation page with the output of `--help` 4
  • `sqlite-utils bulk` command 2
  • `sqlite-utils rows` options `--limit` and `--offset` 2
  • create-index should run analyze after creating index 1
  • Python library methods for calling ANALYZE 1
  • `sqlite-utils bulk` command 1
  • Release notes for 3.21 1
  • `--where` option for `sqlite-rows` 1

user 1

  • simonw · 13 ✖

author_association 1

  • OWNER 13
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
1010462035 https://github.com/simonw/sqlite-utils/issues/381#issuecomment-1010462035 https://api.github.com/repos/simonw/sqlite-utils/issues/381 IC_kwDOCGYnMM48Om1T simonw 9599 2022-01-11T23:33:37Z 2022-01-11T23:33:37Z OWNER

Documentation: https://sqlite-utils.datasette.io/en/latest/cli.html#returning-all-rows-in-a-table

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
`sqlite-utils rows` options `--limit` and `--offset` 1099584685  
1010461844 https://github.com/simonw/sqlite-utils/issues/382#issuecomment-1010461844 https://api.github.com/repos/simonw/sqlite-utils/issues/382 IC_kwDOCGYnMM48OmyU simonw 9599 2022-01-11T23:33:14Z 2022-01-11T23:33:14Z OWNER

Documentation: https://sqlite-utils.datasette.io/en/latest/cli.html#returning-all-rows-in-a-table

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
`--where` option for `sqlite-rows` 1099585611  
1010441118 https://github.com/simonw/sqlite-utils/issues/381#issuecomment-1010441118 https://api.github.com/repos/simonw/sqlite-utils/issues/381 IC_kwDOCGYnMM48Ohue simonw 9599 2022-01-11T22:56:53Z 2022-01-11T22:57:09Z OWNER

sqlite-utils search has --limit already: https://sqlite-utils.datasette.io/en/latest/cli-reference.html#search

--limit INTEGER Number of rows to return - defaults to everything

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
`sqlite-utils rows` options `--limit` and `--offset` 1099584685  
1010440166 https://github.com/simonw/sqlite-utils/issues/383#issuecomment-1010440166 https://api.github.com/repos/simonw/sqlite-utils/issues/383 IC_kwDOCGYnMM48Ohfm simonw 9599 2022-01-11T22:55:05Z 2022-01-11T22:55:05Z OWNER

Twitter thread about this: https://twitter.com/simonw/status/1481020195074293761

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add documentation page with the output of `--help` 1099586786  
1010387223 https://github.com/simonw/sqlite-utils/issues/383#issuecomment-1010387223 https://api.github.com/repos/simonw/sqlite-utils/issues/383 IC_kwDOCGYnMM48OUkX simonw 9599 2022-01-11T21:45:32Z 2022-01-11T21:45:32Z OWNER

The new page of documentation: https://sqlite-utils.datasette.io/en/latest/cli-reference.html

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add documentation page with the output of `--help` 1099586786  
1010386802 https://github.com/simonw/sqlite-utils/issues/383#issuecomment-1010386802 https://api.github.com/repos/simonw/sqlite-utils/issues/383 IC_kwDOCGYnMM48OUdy simonw 9599 2022-01-11T21:44:53Z 2022-01-11T21:44:53Z OWNER

Here's the cog code I used: https://github.com/simonw/sqlite-utils/blob/1d44b0cc2784c94aed1bcf350225cd86ee1aa7e5/docs/cli-reference.rst#L11-L76

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add documentation page with the output of `--help` 1099586786  
1010333511 https://github.com/simonw/sqlite-utils/issues/383#issuecomment-1010333511 https://api.github.com/repos/simonw/sqlite-utils/issues/383 IC_kwDOCGYnMM48OHdH simonw 9599 2022-01-11T20:27:08Z 2022-01-11T20:27:08Z OWNER

I'll call the new page "CLI reference", for consistency with the API reference page here: https://sqlite-utils.datasette.io/en/stable/reference.html

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add documentation page with the output of `--help` 1099586786  
1009544785 https://github.com/simonw/sqlite-utils/issues/380#issuecomment-1009544785 https://api.github.com/repos/simonw/sqlite-utils/issues/380 IC_kwDOCGYnMM48LG5R simonw 9599 2022-01-11T02:32:56Z 2022-01-11T02:32:56Z OWNER

CLI and Python library improvements to help run ANALYZE after creating indexes or inserting rows, to gain better performance from the SQLite query planner when it runs against indexes.

Three new CLI commands: create-database, analyze and bulk.

  • New sqlite-utils create-database command for creating new empty database files. (#348)
  • New Python methods for running ANALYZE against a database, table or index: db.analyze() and table.analyze(), see Optimizing index usage with ANALYZE. (#366)
  • New sqlite-utils analyze command for running ANALYZE using the CLI. (#379)
  • The create-index, insert and update commands now have a new --analyze option for running ANALYZE after the command has completed. (#379)
  • New sqlite-utils bulk command which can import records in the same way as sqlite-utils insert (from JSON, CSV or TSV) and use them to bulk execute a parametrized SQL query. (#375)
  • The CLI tool can now also be run using python -m sqlite_utils. (#368)
  • Using --fmt now implies --table, so you don't need to pass both options. (#374)
  • The --convert function applied to rows can now modify the row in place. (#371)
  • The insert-files command supports two new columns: stem and suffix. (#372)
  • The --nl import option now ignores blank lines in the input. (#376)
  • Fixed bug where streaming input to the insert command with --batch-size 1 would appear to only commit after several rows had been ingested, due to unnecessary input buffering. (#364)
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Release notes for 3.21 1098574572  
1009536276 https://github.com/simonw/sqlite-utils/issues/375#issuecomment-1009536276 https://api.github.com/repos/simonw/sqlite-utils/issues/375 IC_kwDOCGYnMM48LE0U simonw 9599 2022-01-11T02:12:58Z 2022-01-11T02:12:58Z OWNER

Documentation: https://sqlite-utils.datasette.io/en/latest/cli.html#executing-sql-in-bulk

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
`sqlite-utils bulk` command 1097251014  
1009534817 https://github.com/simonw/sqlite-utils/pull/377#issuecomment-1009534817 https://api.github.com/repos/simonw/sqlite-utils/issues/377 IC_kwDOCGYnMM48LEdh simonw 9599 2022-01-11T02:09:38Z 2022-01-11T02:09:38Z OWNER

I tested this like so: ``` % wget 'https://raw.githubusercontent.com/wri/global-power-plant-database/master/output_database/global_power_plant_database.csv' % sqlite-utils create-database test.db % sqlite-utils create-table test.db power_plants url text owner text % sqlite-utils schema test.db CREATE TABLE [power_plants] ( [url] TEXT, [owner] TEXT ); % sqlite-utils bulk test.db 'insert into power_plants (url, owner) values (:url, :owner)' global_power_plant_database.csv --csv [------------------------------------] 0% [###################################-] 99% % sqlite-utils tables --counts test.db -t table count


power_plants 33643 ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
`sqlite-utils bulk` command 1097477582  
1009532125 https://github.com/simonw/sqlite-utils/pull/377#issuecomment-1009532125 https://api.github.com/repos/simonw/sqlite-utils/issues/377 IC_kwDOCGYnMM48LDzd simonw 9599 2022-01-11T02:03:35Z 2022-01-11T02:03:35Z OWNER

Documentation: https://github.com/simonw/sqlite-utils/blob/f4ea0d32c0543373eefaa9b9f3911eb07549eecb/docs/cli.rst#executing-sql-in-bulk

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
`sqlite-utils bulk` command 1097477582  
1009521921 https://github.com/simonw/sqlite-utils/issues/365#issuecomment-1009521921 https://api.github.com/repos/simonw/sqlite-utils/issues/365 IC_kwDOCGYnMM48LBUB simonw 9599 2022-01-11T01:37:53Z 2022-01-11T01:37:53Z OWNER

I decided to go with making this opt-in, mainly for consistency with the other places where I added this feature - see: - #379 - #366

You can now run the following:

sqlite-utils create-index mydb.db mytable mycolumn --analyze

And ANALYZE will be run on the index once it has been created.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
create-index should run analyze after creating index 1096558279  
1009508865 https://github.com/simonw/sqlite-utils/issues/366#issuecomment-1009508865 https://api.github.com/repos/simonw/sqlite-utils/issues/366 IC_kwDOCGYnMM48K-IB simonw 9599 2022-01-11T01:08:51Z 2022-01-11T01:08:51Z OWNER

The Python methods are all done now, next step is the CLI options. I'll do those in a separate issue.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Python library methods for calling ANALYZE 1096563265  

Advanced export

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

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
, [performed_via_github_app] TEXT);
CREATE INDEX [idx_issue_comments_issue]
                ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
                ON [issue_comments] ([user]);
Powered by Datasette · Queries took 1129.116ms · About: github-to-sqlite