Registry / database / brobbot-sqlite-brain

brobbot-sqlite-brain

JSON →
library1.0.3jsnpmunverified

SQLite adapter for the brobbot chatbot framework, version 1.0.3. It provides a persistent brain using SQLite3, allowing brobbot to store and retrieve key-value data across restarts. Configuration is via environment variables for database name, table name, and key prefix. This package is specific to brobbot v6.x and has no major updates since release.

npm install brobbot-sqlite-brain
INSTALL
IMPORT
SIG · BROBBOT-SQLITE-BRA
B
brobbot-sqlite-brain
databasejavascriptv1.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

brobbot-sqlite-brain
Automatically loaded as a brain adapter when running brobbot with -b sqlite; no direct import needed.
const Brain = require('brobbot-sqlite-brain')
This package is a plugin loaded by brobbot, not a module you import directly.

Installs the package and runs brobbot with the SQLite brain using custom environment variable settings.

npm install --save brobbot-sqlite-brain BROBBOT_SQLITE_DB_NAME=mybot BROBBOT_SQLITE_TABLE_NAME=brain BROBBOT_SQLITE_DATA_PREFIX=data: ./index.sh -b sqlite
Debug
Known issues
gotchaDatabase name also determines the file path on disk.
fix
Use an absolute or relative path that is safe and writable.
affects: >=1.0.0
gotchaNo migration support; changes to table structure require manual handling.
fix
Backup data and recreate the table if schema changes are needed.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'brobbot-sqlite-brain'
Package not installed or not in node_modules.
fix
Run `npm install --save brobbot-sqlite-brain` in your brobbot instance.
Upgrade
Version history
1.0.3latest on npm
Audit
Dependencies
brobbotrequiredPeer dependency; required to run the brain adapter.
Agent activity
12 hits · last 30 days
node
10
OpenAI (training)
1
Resources
brobbot-sqlite-brain — npm install brobbot-sqlite-brain · libregistry