typestar

JSON & search

14 steps in 4 sets of SQL.

SQL absorbed the document databases' better ideas rather than losing to them. Reading JSON out of a column, writing it back, and then full-text search with FTS5.

Fourteen steps. Worth knowing before you decide you need a second database alongside the one you already have.

Start this tour

Reading JSON

Writing JSON

Encore

  • search_index.sqlA working search feature: an index over an existing table, kept in sync, queried and ranked.
  • json_ingest.sqlA JSON document arrives; relational rows come out, with the bad records set aside.

The other SQL tours