Documentation
¶
Index ¶
- func CreateContextSnapshotsCollection() *models.Collection
- func CreateMemoryEntriesCollection() *models.Collection
- func CreateRelationshipsCollection() *models.Collection
- func CreateSessionsCollection() *models.Collection
- func CreateTaskProgressCollection() *models.Collection
- type Database
- type SimplePocketBaseClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateContextSnapshotsCollection ¶ added in v1.2.2
func CreateContextSnapshotsCollection() *models.Collection
CreateContextSnapshotsCollection creates the context_snapshots collection
func CreateMemoryEntriesCollection ¶ added in v1.2.2
func CreateMemoryEntriesCollection() *models.Collection
CreateMemoryEntriesCollection creates the memory_entries collection
func CreateRelationshipsCollection ¶ added in v1.2.2
func CreateRelationshipsCollection() *models.Collection
CreateRelationshipsCollection creates the relationships collection
func CreateSessionsCollection ¶ added in v1.2.2
func CreateSessionsCollection() *models.Collection
CreateSessionsCollection creates the sessions collection with proper schema
func CreateTaskProgressCollection ¶ added in v1.2.2
func CreateTaskProgressCollection() *models.Collection
CreateTaskProgressCollection creates the task_progress collection
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database represents the SQLite database connection and operations
func NewDatabase ¶
NewDatabase creates a new database connection and initializes the schema
func (*Database) BeginTransaction ¶
BeginTransaction starts a new transaction
func (*Database) ExecuteInTransaction ¶
ExecuteInTransaction executes a function within a transaction
func (*Database) HealthCheck ¶
HealthCheck performs a basic health check on the database
type SimplePocketBaseClient ¶ added in v1.2.2
type SimplePocketBaseClient struct {
// contains filtered or unexported fields
}
SimplePocketBaseClient wraps PocketBase with minimal configuration
func NewSimplePocketBaseClient ¶ added in v1.2.2
func NewSimplePocketBaseClient(dataDir string) (*SimplePocketBaseClient, error)
NewSimplePocketBaseClient creates a new simple PocketBase client
func (*SimplePocketBaseClient) Bootstrap ¶ added in v1.2.2
func (c *SimplePocketBaseClient) Bootstrap(ctx context.Context) error
Bootstrap initializes the database with required collections
func (*SimplePocketBaseClient) Close ¶ added in v1.2.2
func (c *SimplePocketBaseClient) Close() error
Close gracefully shuts down the PocketBase client
func (*SimplePocketBaseClient) GetApp ¶ added in v1.2.2
func (c *SimplePocketBaseClient) GetApp() *pocketbase.PocketBase
GetApp returns the underlying PocketBase app instance