-
Notifications
You must be signed in to change notification settings - Fork 5
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
Schema builder #15
Schema builder #15
Conversation
a236a99
to
a878690
Compare
Yes, I think it natural to have them co-located in the same repo.
look nicer to me. |
Remember that we are not building a "go" only database. We need to make sure all languages have first class support and that the usage is similar. So it would be unnatural for only the go client to be part of the server repo. Secondly, tigrisdb allows HTTP access without requiring a special client. Thus, embedding a client in the server repo would not send a coherent message.
|
client/schema.go
Outdated
i := 1 | ||
if len(pks) > 1 { | ||
if len(pks) > 2 { | ||
return 0, fmt.Errorf("only one colon allowed in the tag") |
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.
Can you add a comment when this can happen?
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.
When user have more then one colon in the tag, for example "trigris:primary_key:a:b". The error message is self-explanatory IMO.
There is a test for it: https://github.com/tigrisdata/tigris-client-go/blob/6d913e6e5187748bdd9208af04e0eb41f25bfc28/schema/schema_test.go#L71
806ba2c
to
7a0cd6f
Compare
e72eaf5
to
622c9cb
Compare
Codecov Report
@@ Coverage Diff @@
## main #15 +/- ##
==========================================
+ Coverage 80.76% 84.93% +4.17%
==========================================
Files 10 11 +1
Lines 863 1082 +219
==========================================
+ Hits 697 919 +222
+ Misses 133 123 -10
- Partials 33 40 +7
Continue to review full report at Codecov.
|
6d913e6
to
a9c24b2
Compare
🎉 This PR is included in version 1.0.0-alpha.9 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.0.0-beta.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
No description provided.