Documentation ¶ Index ¶ func Setup(ctx context.Context, path string, cfg *util.ConfigStore) (*sql.DB, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Setup ¶ func Setup(ctx context.Context, path string, cfg *util.ConfigStore) (*sql.DB, error) Setup opens the SQLite DB at path, verifies its integrity and schema, and returns the valid DB handle. If any check fails, it backs up the old file and reinitializes the DB using the schema definitions. Types ¶ This section is empty. Source Files ¶ View all Source files cleanup.goinitialization.go Click to show internal directories. Click to hide internal directories.