Skip to main content

Db Adapters

@swampadmin/db-adaptersv2026.02.10.0· 20d agoDATASTORES
01README

Pluggable datastore backends for persisting model state across runs.

Adapters

  • SQLite — zero-config local storage, great for development
  • DynamoDB — serverless key-value with automatic scaling
  • TiKV — distributed transactional key-value store

All adapters implement the same get/set/delete/list interface.

02Release Notes

New

  • TiKV datastore — distributed transactional key-value backend
  • DynamoDB adapter now supports consistent_read config option

Fixed

  • SQLite adapter properly closes connections on method completion
03Datastores3
sqlite-store
datastore-providersqlite.ts

sqlite-store datastore provider

dynamodb-storeconfigurable
datastore-providerdynamodb.ts

dynamodb-store datastore provider

Config Fields

FieldTypeDescription
table_namestringDynamoDB table name
regionstringAWS region
consistent_read?booleanUse strongly consistent reads (default: false)
tikv-storeconfigurable
datastore-providertikv.ts

tikv-store datastore provider

Config Fields

FieldTypeDescription
pd_endpointsarrayTiKV Placement Driver endpoints
key_prefix?stringKey space prefix
04Previous Versions1
2026.01.05.0Mar 6, 2026
05Stats
Downloads
0
Archive size
64.0 KB

Not yet scored.

A score will be generated the next time this extension is published. The owner can also trigger scoring manually.

06Platforms
07Labels