db

package
v0.102.2-nightly Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BackupCmd = &cobra.Command{
	Use:   "backup <database_name>",
	Short: "Backup database to IPFS",
	Args:  cobra.ExactArgs(1),
	RunE:  backupDatabase,
}

BackupCmd backs up a database to IPFS

View Source
var BackupsCmd = &cobra.Command{
	Use:   "backups <database_name>",
	Short: "List backups for a database",
	Args:  cobra.ExactArgs(1),
	RunE:  listBackups,
}

BackupsCmd lists backups for a database

View Source
var CreateCmd = &cobra.Command{
	Use:   "create <database_name>",
	Short: "Create a new SQLite database",
	Args:  cobra.ExactArgs(1),
	RunE:  createDatabase,
}

CreateCmd creates a new database

View Source
var DBCmd = &cobra.Command{
	Use:   "db",
	Short: "Manage SQLite databases",
	Long:  "Create and manage per-namespace SQLite databases",
}

DBCmd is the root database command

View Source
var ListCmd = &cobra.Command{
	Use:   "list",
	Short: "List all databases",
	RunE:  listDatabases,
}

ListCmd lists all databases

View Source
var QueryCmd = &cobra.Command{
	Use:   "query <database_name> <sql>",
	Short: "Execute a SQL query",
	Args:  cobra.ExactArgs(2),
	RunE:  queryDatabase,
}

QueryCmd executes a SQL query

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL