Skip to main content

RunMigrations

Applies all pending cache service migrations.

def RunMigrations(
ctx: context.Context,
db: *sqlx.DB
) - > error

Applies all pending cache service migrations.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the migration operation, allowing for cancellation and timeouts.
db*sqlx.DBThe database connection pool to which the migrations will be applied.

Returns

TypeDescription
errorAn error if the migration process fails, otherwise nil.