Syndicate Actor for accessing SQLite databases
Go to file
Emery Hemingway e03df9a2e8 Adjust to Syndicate API 2023-10-10 09:26:46 +01:00
src Adjust to Syndicate API 2023-10-10 09:26:46 +01:00
.envrc Better build system 2023-06-07 18:11:21 +01:00
.gitignore Add lockfile 2023-10-10 09:26:36 +01:00
README.md Return values in types other than string 2023-05-27 23:12:59 +01:00
Tupfile Add lockfile 2023-10-10 09:26:36 +01:00
Tuprules.tup Add lockfile 2023-10-10 09:26:36 +01:00
lock.json Add lockfile 2023-10-10 09:26:36 +01:00
shell.nix Add lockfile 2023-10-10 09:26:36 +01:00
sql.prs Return values in types other than string 2023-05-27 23:12:59 +01:00
sqlite_actor.nimble Adjust to Syndicate API 2023-10-10 09:26:46 +01:00

README.md

sqlite_actor

Syndicate actor for accessing SQLite databases.

Build

Depends on the SQLcipher library and pkg-config.

Example configuration

? <example-dataspace ?ds> [

  $ds <query example-row "SELECT id, name FROM stuff">

  $ds ? <example-row ?id ?name> [
    $log ! <log "-" { row: <example-row $id $name> }>
  ]

  <require-service <daemon sqlite_actor>>
  ? <service-object <daemon sqlite_actor> ?cap> [
    $cap {
      dataspace: $ds
      database: "/var/db/example.db"
    }
  ]

  <daemon sqlite_actor {
    argv: [ "/usr/local/bin/sqlite_actor" ]
    protocol: application/syndicate
  }>
]