Umang01-hash
released this
20 Jan 11:18
·
30 commits
to development
since this release
Release v1.31.0
🚀 Features :
-
Support for ScyllaDB as a Data Source
ScyllaDB is now supported as a data source in GoFr. The following methods are supported: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
To integrate ScyllaDB into your application, use the
AddScyllaDB
method:client := scylladb.New(scylladb.Config{ Host: app.Config.Get("SCYLLADB_HOST"), Keyspace: app.Config.Get("SCYLLADB_KEYSPACE"), Port: app.Config.GetInt("SCYLLADB_PORT"), Username: app.Config.Get("SCYLLADB_USERNAME"), Password: app.Config.Get("SCYLLADB_PASSWORD"), }) app.AddScyllaDB(client)
For detailed instructions, refer to the ScyllaDB documentation.
-
Built-in Tracing for Interservice gRPC Calls
All interservice gRPC calls in GoFr now include in-built tracing support.-
Prerequisite: Ensure
gofr-cli
v0.3.0 is installed. To installgofr-cli
, run:go install gofr.dev/cli/gofr@latest
-
To generate the gRPC client, run:
gofr wrap grpc client -proto=path/to/your/proto/file
For detailed instructions on setting up the gRPC Client in GoFr, refer to the documentation. You can also explore an example gRPC client implementation in the examples folder.
-
Full Changelog: v1.30.0...v1.31.0