Geopoly in SQLite
I noticed this morning that one of my Datasette installations had the Geopoly SQLite extension enabled.
20 posts tagged “database”.
I noticed this morning that one of my Datasette installations had the Geopoly SQLite extension enabled.
When writing a test for datasette-leaflet-freedraw I realized I didn't have a simple tiny recipe for creating an in-memory SpatiaLite database in Python.
Today I heard about the sqlite3-rsync command, currently available in a branch in the SQLite code repository.
I wanted to grant a PostgreSQL user (or role) read-only access to a specific list of tables. I created the role using the Heroku PostgreSQL web console. Having done that, it had the name .
Here's how to use SQLite's syntax with a CTE to create a temporary table that you can then perform joins against in a query: Try that here.
I learned this trick today while browsing the code of Blacklite, a neat Java library for writing diagnostic logs to a SQLite database.
This is a quick trick for creating a cumulative chart of the total number of items created over time based just on their creation date.
Derek Willis has a Datasette instance full of political campaign emails running on Heroku. Matt Hodges pointed out that a lot of these emails include codes, which are used by ActBlue campaigns to…
Here's a trick I've been using to compare the rows in a table before and after I perform an operation against it. It works well for a few hundred (and maybe a few thousand) rows.
I was getting occasional messages from a Datasette instance that was running against a bunch of different SQLite files that were updated by cron scripts (my personal Dogsheep).
I wanted to find potentially duplicate records in my data, based on having the exact same name and being geographically located within 500 meters of each other.
Given a table with a column in SQLite I want to figure out if every value in that table is actually the text representation of an integer or floating point value, so I can decide if it's a good idea…
In order to efficiently generate a GeoJSON representation of a vast number of locations, I'm currently experimenting with generating the GeoJSON directly inside a PostgreSQL SQL query using and…
I wanted to try the backup command that was released in SQLite3 3.27.0 on 2019-02-07. Ubuntu 18.04.4 LTS has SQLite 3.22.0 from 2018-01-22.
I tried using a gin index to speed up queries against a column. PostgreSQL: More performance for LIKE and ILIKE statements provided useful background.
I figured out a pattern for doing this today using the CLI tool - given two SQLite databases in the current folder, called and : I'm using that in this GitHub Actions workflow.
When SQLite executes a query, it does so by executing a sequence of virtual machine operations. There are mechanisms for cancelling a query after a specific number of these operations, to protect…
Initial article: April 28th 2023 - see below for an update I got intrigued by Deno KV, which describes itself as "a global database for global apps".
I have a database table with all of my Swarm checkins since 2011, created using my swarm-to-sqlite tool.
I like using Postgres.app to run PostgreSQL on my macOS laptop. I use it for a bunch of different projects.