-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: scylladb database provider implementation #320
base: main
Are you sure you want to change the base?
Conversation
cmd/program/program.go
Outdated
@@ -103,6 +103,7 @@ var ( | |||
sqliteDriver = []string{"github.com/mattn/go-sqlite3"} | |||
redisDriver = []string{"github.com/redis/go-redis/v9"} | |||
mongoDriver = []string{"go.mongodb.org/mongo-driver"} | |||
scyllaDriver = []string{"github.com/gocql/gocql"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scyllaDriver = []string{"github.com/gocql/gocql"} | |
scyllaDriver = []string{"github.com/scylladb/gocql"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we have to replace the module, I managed to add a GoCQL driver and then a a replaceable right after it.
Should be clean enough for now.
"strings" | ||
"time" | ||
|
||
"github.com/gocql/gocql" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do believe it should also be https://github.com/scylladb/gocql
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, our gocql driver is not there yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK we have to replace one module for another.
Check Gemini go.mod for a reference.
"strings" | ||
"time" | ||
|
||
"github.com/gocql/gocql" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, our gocql driver is not there yet.
Co-authored-by: Yaniv Kaul <[email protected]>
Co-authored-by: Dmitry Kropachev <[email protected]>
Ready to review @Melkeydev |
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.
Feature
This pull request introduces support for ScyllaDB as a new database option in the project. It includes modifications to various parts of the codebase to integrate ScyllaDB, including database drivers, templates, and Docker configurations.
Description of Changes:
go mod edit
helper to get the updated driverChecklist