Documentation
¶
Overview ¶
Package main demonstrates the basic dbx flow with Postgres, mirroring aisphere-hub's skill.go patterns.
This example requires a running Postgres instance. Set KERNEL_DBX_PG_DSN:
export KERNEL_DBX_PG_DSN=postgres://user:pass@localhost:5432/testdb?sslmode=disable go run ./examples/dbx-basic
If the env var is not set, the example prints usage and exits.
Expected output (with a real DB):
opened db (driver=postgres) migrated dbx_basic_skills table created skill id=1 name=demo owner=user_123 found skill id=1 name=demo owner=user_123 upserted skill: display_name=Demo V2, owner_id=user_123 (unchanged) incremented download_count to 5 paginated: page=1 size=10 total=12 hasMore=true soft-deleted skill demo unscoped query found soft-deleted skill: demo dropped table dbx_basic_skills done
Click to show internal directories.
Click to hide internal directories.