migrations

package
v0.26041.1000-preview Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupRemoteCoderDB

func BackupRemoteCoderDB(dbPath string) (string, error)

BackupRemoteCoderDB creates a backup of the remote_coder database before migration

func MigrateImBotCredentials

func MigrateImBotCredentials(remoteCoderDBPath, configDir string) (count int, err error)

MigrateImBotCredentials migrates ImBot credentials from the old remote_coder database to the standard tingly.db database.

Parameters:

  • remoteCoderDBPath: Path to the remote_coder.db file (source)
  • configDir: Path to the tingly config directory (destination)

Returns:

  • count: Number of records migrated
  • err: Any error encountered during migration

func MigrateImBotCredentialsFromConfigDir

func MigrateImBotCredentialsFromConfigDir(configDir string) (int, error)

MigrateImBotCredentialsFromConfigDir is a convenience function that migrates from the default remote_coder database location for a given config directory.

func ValidateMigratedData

func ValidateMigratedData(configDir string) error

ValidateMigratedData validates that the migrated data can be unmarshaled correctly

func VerifyImBotMigration

func VerifyImBotMigration(remoteCoderDBPath, configDir string) (sourceCount, destCount int, err error)

VerifyImBotMigration verifies that the migration was successful by comparing record counts

Types

This section is empty.

Jump to

Keyboard shortcuts

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