github gofr-dev/gofr v1.42.5

latest releases: v1.46.3, v1.46.2, v1.46.1...
3 months ago

v1.42.5

🚀 Enhancements

🔹 ScyllaDB Migrator Support

GoFr now includes native support for ScyllaDB migrations.

🧩 Supported Migration Interface:

type ScyllaDB interface {
    Query(dest any, stmt string, values ...any) error
    QueryWithCtx(ctx context.Context, dest any, stmt string, values ...any) error

    Exec(stmt string, values ...any) error
    ExecWithCtx(ctx context.Context, stmt string, values ...any) error

    ExecCAS(dest any, stmt string, values ...any) (bool, error)

    NewBatch(name string, batchType int) error
    NewBatchWithCtx(ctx context.Context, name string, batchType int) error

    BatchQuery(name, stmt string, values ...any) error
    BatchQueryWithCtx(ctx context.Context, name, stmt string, values ...any) error

    ExecuteBatchWithCtx(ctx context.Context, name string) error
}

🔹 OpenTSDB Migrator Support

Support for OpenTSDB migration operations, enable you to pre-seed metrics and manage annotations.

✅ Key Features:

  • Versioned JSON-based migration files

  • Integrated directly into GoFr's migration interface

🧩 Supported Migration Interface:

type OpenTSDB interface {
    // PutDataPoints can be used for seeding initial metrics during migration
    PutDataPoints(ctx context.Context, data any, queryParam string, res any) error

    // PostAnnotation creates or updates an annotation in OpenTSDB using the 'POST /api/annotation' endpoint.
    PostAnnotation(ctx context.Context, annotation any, res any) error

    // PutAnnotation creates or replaces an annotation in OpenTSDB using the 'PUT /api/annotation' endpoint.
    PutAnnotation(ctx context.Context, annotation any, res any) error

    // DeleteAnnotation removes an annotation from OpenTSDB using the 'DELETE /api/annotation' endpoint.
    DeleteAnnotation(ctx context.Context, annotation any, res any) error
}

📚 Documentation
See gofr.dev/migrations for full examples, best practices, and schema layouts for ScyllaDB and OpenTSDB migrations.

Don't miss a new gofr release

NewReleases is sending notifications on new releases.