Guides
Answers for the moments a database gets in the way, written for people with the problem in front of them.
Database errors
What an error means and how to fix it, reproduced on real servers.
- A network-related or instance-specific error occurred while establishing a connection to SQL Server
- ALTER TABLE DROP COLUMN failed because one or more objects access this column
- ambiguous column name
- Ambiguous column name (SQL Server error 209)
- An expression of non-boolean type specified in a context where a condition is expected
- Arithmetic overflow error converting expression to data type int
Is this migration safe?
Which lock each schema change takes and whether it rewrites the table.
- Does adding a CHECK constraint lock the table in PostgreSQL?
- Does adding a column with a default rewrite the table in PostgreSQL?
- Does adding a foreign key lock both tables in PostgreSQL?
- Does adding a primary key lock the table in PostgreSQL?
- Does adding a UNIQUE constraint lock the table in PostgreSQL?
- Does adding an index lock the table in MySQL?
EXPLAIN, explained
Every step of a query plan, and what to do when it’s the slow one.
- Aggregate in PostgreSQL EXPLAIN
- Append in PostgreSQL EXPLAIN
- Bitmap Heap Scan in PostgreSQL EXPLAIN
- Bitmap Index Scan in PostgreSQL EXPLAIN
- Buffers: shared hit, read, dirtied, written in PostgreSQL EXPLAIN
- cost and rows estimates in PostgreSQL EXPLAIN
PostgreSQL lock modes
PostgreSQL’s lock modes, what blocks what, and who holds it now.
- ACCESS EXCLUSIVE lock in PostgreSQL
- ACCESS SHARE lock in PostgreSQL
- EXCLUSIVE lock in PostgreSQL
- ROW EXCLUSIVE lock in PostgreSQL
- ROW SHARE lock in PostgreSQL
- SHARE lock in PostgreSQL
Connect from your Mac
Connecting to hosted and local databases from a Mac.
- Connect to a SQL Server named instance (HOST\SQLEXPRESS) from your Mac
- Connect to Amazon Aurora PostgreSQL from your Mac
- Connect to Amazon ElastiCache for Redis OSS or Valkey from your Mac
- Connect to Amazon RDS for MySQL from your Mac
- Connect to Amazon RDS for PostgreSQL from your Mac
- Connect to Amazon RDS for SQL Server from your Mac
Connection strings
URL formats, options, and encoding passwords.
- MongoDB connection string: mongodb:// and mongodb+srv:// explained
- MySQL connection string: mysql:// URLs, mysql flags and option files
- PostgreSQL connection string (URI and key/value) explained
- Redis connection string: redis:// and rediss:// URLs explained
- Special characters in database passwords: percent-encoding connection URLs
- SQL Server connection strings: ADO.NET, JDBC, ODBC and sqlserver:// URLs
Download Inlet
Signed and notarized by Apple. It keeps itself up to date, and asks before it checks.
Version 0.2.0 · macOS 26 Tahoe or later · Apple silicon and Intel