migrations

package
v0.260604.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MPL-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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