Skip to content

README: operations map onto API calls, and SQL first - #48

Merged
djthorpe merged 2 commits into
masterfrom
djt/1118/readme-intro
Nov 18, 2026
Merged

djthorpe merged 2 commits into
masterfrom
djt/1118/readme-intro

Conversation

@djthorpe

@djthorpe djthorpe commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

The README now starts with what matters most: operations which map directly onto API calls, and SQL first, rather than an ORM.

  • Opening: one paragraph saying that, with go-pg's semantics, and pure Go.
  • Operations map onto API calls: the table, moved up from Motivation, and a GET and POST handler, each one call, with sqlite.HTTPError.
  • SQL first, not an ORM: no query builder, generated SQL or struct tags. A type returns the SQL of each operation. What runs is what you read, all of SQLite is there, queries can be in files, and types stay thin.
  • Features: the list which opened the README, after those.
  • Interfaces: the old Motivation's steps and interfaces, as they were.

… rather than an ORM

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@djthorpe djthorpe self-assigned this Nov 18, 2026
@djthorpe
djthorpe merged commit ef5fb30 into master Nov 18, 2026
1 check passed
@github-actions

Copy link
Copy Markdown

Coverage for this change: 90.6%

@djthorpe
djthorpe deleted the djt/1118/readme-intro branch November 18, 2026 14:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The README must qualify its write-lock guarantee because serialization applies only within one pool, while other pools or processes can still cause “database is locked” failures.

1 open issue
What changed in this PR

This documentation-only PR reorganizes the README around go-sqlite’s API-aligned operations and SQL-first approach.

Changes:

  • Moves the operation-to-HTTP mapping earlier and adds GET and POST handler examples using sqlite.HTTPError.
  • Adds a SQL-first section explaining explicit queries, saved SQL files, and thin types.
  • Moves the feature list and working example below these sections, retaining the interface walkthrough.
File Description
README.md Reorders the introduction and adds HTTP handler examples, SQL-first guidance, and expanded feature descriptions.

Review effort: Balanced

Comment thread README.md

## Features

* **One writer and many readers,** with WAL, so reads don't wait for writes, and writes don't fail with "database is locked".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants