Simon Willison’s Weblog

Subscribe
Atom feed for sqlite Random

473 posts tagged “sqlite”

2020

Release sqlite-utils 2.9 — Python CLI utility and library for manipulating SQLite databases

Weeknotes: Datasette 0.41, photos breakthroughs

Visit Weeknotes: Datasette 0.41, photos breakthroughs

Shorter weeknotes this week, because my main project for the week warrants a detailed write-up on its own (coming soon... update 21st May here it is).

[... 867 words]

Release sqlite-utils 2.8 — Python CLI utility and library for manipulating SQLite databases
Release sqlite-utils 2.7.2 — Python CLI utility and library for manipulating SQLite databases
Release sqlite-utils 2.7.1 — Python CLI utility and library for manipulating SQLite databases
Release sqlite-utils 2.7 — Python CLI utility and library for manipulating SQLite databases
Release sqlite-utils 2.6 — Python CLI utility and library for manipulating SQLite databases
Release sqlite-utils 2.5 — Python CLI utility and library for manipulating SQLite databases

Weeknotes: Datasette 0.39 and many other projects

This week’s theme: Well, I’m not going anywhere. So a ton of progress to report on various projects.

[... 806 words]

Release sqlite-utils 2.4.4 — Python CLI utility and library for manipulating SQLite databases
Release sqlite-utils 2.4.3 — Python CLI utility and library for manipulating SQLite databases
Release hacker-news-to-sqlite 0.3.1 — Create a SQLite database containing data pulled from Hacker News
Release hacker-news-to-sqlite 0.3 — Create a SQLite database containing data pulled from Hacker News
Release hacker-news-to-sqlite 0.2a — Create a SQLite database containing data pulled from Hacker News

hacker-news-to-sqlite (via) The latest in my Dogsheep series of tools: hacker-news-to-sqlite uses the Hacker News API to fetch your comments and submissions from Hacker News and save them to a SQLite database.

# 21st March 2020, 4:27 am / hacker-news, projects, sqlite, dogsheep

Release hacker-news-to-sqlite 0.1a — Create a SQLite database containing data pulled from Hacker News
Release sqlite-utils 2.4.2 — Python CLI utility and library for manipulating SQLite databases
Release sqlite-utils 2.4.1 — Python CLI utility and library for manipulating SQLite databases
Release sqlite-utils 2.4 — Python CLI utility and library for manipulating SQLite databases

Weeknotes: Datasette Writes

As discussed previously, the biggest hole in Datasette’s feature set at the moment involves writing to the database.

[... 604 words]

Things I learned about shapefiles building shapefile-to-sqlite

Visit Things I learned about shapefiles building shapefile-to-sqlite

The latest in my series of x-to-sqlite tools is shapefile-to-sqlite. I learned a whole bunch of things about the ESRI shapefile format while building it.

[... 1,073 words]

Release sqlite-utils 2.3.1 — Python CLI utility and library for manipulating SQLite databases
Release sqlite-utils 2.3 — Python CLI utility and library for manipulating SQLite databases
Release sqlite-utils 2.2.1 — Python CLI utility and library for manipulating SQLite databases
Release sqlite-utils 2.2 — Python CLI utility and library for manipulating SQLite databases

geojson-to-sqlite (via) I just put out the first release of geojson-to-sqlite—a CLI tool that can convert GeoJSON files (consisting of a Feature or a set of features in a FeatureCollection) into a table in a SQLite database. If you use the --spatialite option it will initalize the table with SpatiaLite and store the geometries in a spacially indexed geometry field—without that option it stores them as GeoJSON.

# 31st January 2020, 6:40 am / cli, geospatial, projects, spatialite, sqlite, geojson

Release sqlite-utils 2.1 — Python CLI utility and library for manipulating SQLite databases

Generated Columns in SQLite (via) SQLite 3.31.0 released today, and generated columns are the single most notable new feature. PostgreSQL 12 added these in October 2019, and MySQL has had them since 5.7 in October 2015. MySQL and SQLite both offer either “stored” or “virtual” generated columns, with virtual columns being calculated at runtime. PostgreSQL currently only supports stored columns.

# 24th January 2020, 4:20 am / mysql, postgresql, sql, sqlite

Serving 100µs reads with 100% availability (via) Fascinating use-case for SQLite from Segment: they needed a massively replicated configuration database across all of their instances that process streaming data. They chose to make the configuration available as a ~50GB SQLite database file mirrored to every instance, meaning lookups against that data could complete in microseconds. Changes to the central MySQL configuration store are pulled every 2-3 seconds, resulting in a trade-off of consistency for availability which fits their use-case just fine.

# 10th January 2020, 5:15 am / scaling, sqlite, segment

Release sqlite-utils 2.0.1 — Python CLI utility and library for manipulating SQLite databases