Syndicate Actor for accessing SQLite databases
Go to file
Emery Hemingway 1b766af3f3 Return values in types other than string 2023-05-27 23:12:59 +01:00
src Return values in types other than string 2023-05-27 23:12:59 +01:00
.envrc Return values in types other than string 2023-05-27 23:12:59 +01:00
.gitignore Initial commit 2023-05-26 23:32:47 +01:00
README.md Return values in types other than string 2023-05-27 23:12:59 +01:00
Tuprules.tup Initial commit 2023-05-26 23:32:47 +01:00
sql.prs Return values in types other than string 2023-05-27 23:12:59 +01:00
sqlite_actor.nimble Assert each row as a record 2023-05-27 07:34:22 +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
  }>
]