2023-05-26 22:59:01 +00:00
|
|
|
# sqlite_actor
|
|
|
|
|
|
|
|
Syndicate actor for accessing SQLite databases.
|
|
|
|
|
2023-05-27 21:53:25 +00:00
|
|
|
## Build
|
|
|
|
|
|
|
|
Depends on the [SQLcipher](https://www.zetetic.net/sqlcipher/) library and pkg-config.
|
|
|
|
|
2023-05-26 22:59:01 +00:00
|
|
|
## 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
|
|
|
|
}>
|
|
|
|
]
|
|
|
|
```
|