Hacker GitHub

← All repos

simonw/sqlite-utils

View on GitHub ↗ ★ 2,182 Python

Python CLI utility and library for manipulating SQLite databases

35 mentions on Hacker News by 12 people: 2 stories, 33 comments · first 2019-05-17 · latest 2026-08-05

Mentions per year 35 mentions · busiest year 2022 (9)
20082026
  1. …github.com/simonw/datasette/graphs/code-frequency https://github.com/simonw/llm/graphs/code-frequency https://github.com/simonw/sqlite-utils/graphs/code-frequency
  2. Right, the transcript is linked from the issue: https://github.com/simonw/sqlite-utils/issues/787#issuecomme... As far as I can tell I've shared more prompt transcripts than anyone else . Happy to be proven wrong about that. Look through…
    comment by simonw · 2026-07-12 · in Prefer strict tables in SQLite
  3. …after opening the database file, prior to doing anything else that requires knowing the schema." https://github.com/simonw/sqlite-utils/issues/344#issuecomme... I guess for ID reuse a rationalization could be that theres only so many…
    comment by cowboylowrez · 2026-07-12 · in Prefer strict tables in SQLite
  4. Thanks for the nudge, I just added a new test explicitly covering this: https://github.com/simonw/sqlite-utils/commit/d71420065903ff...
    comment by simonw · 2026-07-12 · in Prefer strict tables in SQLite
  5. …defer_foreign_keys= ON" before running the transformation, then resets those settings afterwards: https://github.com/simonw/sqlite-utils/blob/3f0471701b5f8c7d... That's the pattern recommended by SQLite here:…
    comment by simonw · 2026-07-12 · in Prefer strict tables in SQLite
  6. …has 9,973 lines of implementation code and 14,860 of test code. Here's the delete_where() test: https://github.com/simonw/sqlite-utils/blob/7a52214624ae0e2c... The problem with the test was that it asserted that the records were deleted…
  7. …does SQLite FTS full text search config. There are additional tables for FTS indexes. sqlite-utils: https://github.com/simonw/sqlite-utils sqlite-utils > Configuring full-text search: https://sqlite-utils.datasette.io/en/stable/cli.html#con…
  8. …run. We picked it at my last company -- and it was a mistake, when a simple DB would have sufficed. https://github.com/simonw/sqlite-utils https://litestream.io/
  9. …larger open source projects - https://github.com/simonw/datasette https://github.com/simonw/llm and https://github.com/simonw/sqlite-utils - for a couple of years now. Also literally hundreds of smaller plugins and libraries and CLI tools,…
  10. Here's what I got against one of my larger open source projects: cd /tmp git clone https://github.com/simonw/sqlite-utils cd sqlite-utils uvx ty check Here's the output: https://gist.github.com/simonw/a13e1720b03e23783ae668eca7f6f...…
  11. …it's a risky way of working compared to stateful migrations. Here are the tests for that option: https://github.com/simonw/sqlite-utils/blob/577078fe01da6d87... - and the accompanying issue: https://github.com/simonw/sqlite-utils/issues/467
  12. …Willison's github would be a great place to get started imo - https://github.com/simonw/datasette https://github.com/simonw/sqlite-utils So, his code might not be a good place to find best patterns (for ex, I don't think they are fully…
  13. …8000 That started a https://datasette.io/ server running on port 8000. Git works too: ./git clone https://github.com/simonw/sqlite-utils That git binary is 6.3MB, and I believe that same exact file can be copied to a Linux or Windows…
    comment by simonw · 2023-11-01 · in Cosmopolitan Third Edition
  14. …useful for working with data in simple shell scripts. [1] https://github.com/johnkerl/miller [2] https://github.com/simonw/sqlite-utils
  15. …my package as a Python library rather than a CLI tool may not want the extra installed components: https://github.com/simonw/sqlite-utils/commit/ec12b780d5dcd6... There's an animated GIF demo of the result here:…
  16. …my head. Just has the exact set of features I want. Here's one example of one of my Justfiles: https://github.com/simonw/sqlite-utils/blob/fc221f9b62ed8624... - documented here: https://sqlite-utils.datasette.io/en/stable/contributing.htm..…
    comment by simonw · 2023-01-09 · in Just: A Command Runner
  17. …time, but it is possible to search PRs by commit. For example, say git blame led me to this commit: https://github.com/simonw/sqlite-utils/commit/129141572f249e... I could have found PR #373 via this search:…
    comment by thunky · 2022-10-30 · in The Perfect Commit
  18. Is this example too large or about the right size for you? https://github.com/simonw/sqlite-utils/commit/ab8d4aad0c42f9...
    comment by simonw · 2022-10-29 · in The Perfect Commit
  19. …them is to run my test suite against multiple Python versions using GitHub Actions, e.g. here: https://github.com/simonw/sqlite-utils/blob/main/.github/wor...
    comment by simonw · 2022-09-01 · in The Rise of SQL
  20. …each column: https://sqlite-utils.datasette.io/en/latest/python-api.html#... Implementation here: https://github.com/simonw/sqlite-utils/blob/3fbe8a784cc2f3fa...
  21. …fine in practice. Here's where I implement that in my sqlite-utils Python library and CLI tool: https://github.com/simonw/sqlite-utils/blob/2d84577202e22767...
    comment by simonw · 2022-06-18 · in The Design of SQLite4
  22. …From the same author, "sqlite-utils" generate SQLite table definitions and rows from similar: https://github.com/simonw/sqlite-utils I find this useful outside of SQLite because the syntax is similar across SQL databases. Great way to…
  23. …the other tools that will create a sqlite database for you.) - https://github.com/saulpw/visidata - https://github.com/simonw/sqlite-utils
    comment by leonim · 2022-03-22 · in Ask HN: Local Tools for Viewing JSON
  24. Sqlite-utils has this: https://github.com/simonw/sqlite-utils
    comment by globular-toast · 2022-02-27 · in New JSON query operators in SQLite 3.38.0
  25. …and then exploring with Visidata or SQL queries. Q: https://github.com/harelba/q sqlite-utils: https://github.com/simonw/sqlite-utils
  26. …or for things that I want to explore that are relevant to the project in some way. Recent example: https://github.com/simonw/sqlite-utils/issues/344 - researching STRICT mode that was just added to SQLite, and seeing if it would make sense…
    comment by simonw · 2021-12-04 · in Keep a Log
  27. …for my sqlite-utils tool - I'm seeing a big speed up in comparison to parsing the CSV in Python: https://github.com/simonw/sqlite-utils/issues/297
  28. …property, which grew extra features (like order_by) over time as they were requested by users, eg https://github.com/simonw/sqlite-utils/issues/76 The vast majority of the library is aimed at making getting data IN to SQLite as easy as…
  29. …to add a --schema option which does the dump without also including the inserted rows. Issue here: https://github.com/simonw/sqlite-utils/issues/288
  30. …hub.com/simonw/datasette/blob/main/tests/test_doc... - https://sqlite-utils.datasette.io/ serves from https://github.com/simonw/sqlite-utils/tree/main/docs - unit tests here: https://github.com/simonw/sqlite-utils/blob/main/tests/test_...…
    comment by simonw · 2021-06-06 · in The case for continuous documentation
  31. …Excel, Sqlite3, etc in the terminal. I find the Datasette author's related tools sqlite-utils ( https://github.com/simonw/sqlite-utils ) and the Dogsheep tools ( https://github.com/dogsheep ) and VisiData are nicely complementary. I prefer…
  32. Yes, ijson. I figured out how to use that a few days ago: https://github.com/simonw/sqlite-utils/issues/173
  33. …and (inspired by simonw) we've incorporated a black check into the test suite. It's simple: https://github.com/simonw/sqlite-utils/blob/master/tests/tes...