RunMigrations
Applies all pending cache service migrations.
def RunMigrations(
ctx: context.Context,
db: *sqlx.DB
) - > error
Applies all pending cache service migrations.
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for the migration operation, allowing for cancellation and timeouts. |
| db | *sqlx.DB | The database connection pool to which the migrations will be applied. |
Returns
| Type | Description |
|---|---|
error | An error if the migration process fails, otherwise nil. |