Skip to content
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

Feature/gob #47

Merged
merged 45 commits into from
May 9, 2022
Merged

Feature/gob #47

merged 45 commits into from
May 9, 2022

Conversation

ostafen
Copy link
Owner

@ostafen ostafen commented May 4, 2022

PR for #46. Need to add exhaustive tests and improve code before merging

@ostafen ostafen added the enhancement New feature or request label May 4, 2022
@ostafen ostafen self-assigned this May 4, 2022
@ostafen ostafen linked an issue May 4, 2022 that may be closed by this pull request
Repository owner deleted a comment from codecov-commenter May 7, 2022
@codecov-commenter
Copy link

codecov-commenter commented May 7, 2022

Codecov Report

Merging #47 (60b1eac) into main (e255f3c) will decrease coverage by 0.34%.
The diff coverage is 88.51%.

@@            Coverage Diff             @@
##             main      #47      +/-   ##
==========================================
- Coverage   83.91%   83.56%   -0.35%     
==========================================
  Files           9       11       +2     
  Lines         976     1290     +314     
==========================================
+ Hits          819     1078     +259     
- Misses        108      150      +42     
- Partials       49       62      +13     
Impacted Files Coverage Δ
document.go 89.41% <80.00%> (+0.38%) ⬆️
util.go 83.33% <81.81%> (-4.17%) ⬇️
encoding/encoding.go 83.02% <85.02%> (ø)
criteria.go 91.48% <85.48%> (-3.83%) ⬇️
compare.go 98.96% <98.96%> (ø)
db.go 88.67% <100.00%> (+2.74%) ⬆️
mem.go 94.67% <100.00%> (ø)
storage.go 69.40% <100.00%> (-4.11%) ⬇️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b59be85...60b1eac. Read the comment docs.

Copy link
Contributor

@segfault99 segfault99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks understandable to me 👍

README.md Outdated
@@ -188,6 +188,48 @@ db.Query("todos").UpdateById(docId, map[string]interface{}{"completed": true})
db.Query("todos").DeleteById(docId)
```

## Data Types

Internally, CloverDB supports the following primitive data types: **int64**, **uint64**, **float64** and **time.Time**. When possible, values having different types are silently converted to one of the internal types: signed integer values get converted to int64, while unsigned ones to uint64. Float32 values are extended to float64.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could also add string to the primitive data types

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I forgot to add string and bool to the README

@ostafen ostafen marked this pull request as ready for review May 9, 2022 11:45
@ostafen ostafen merged commit 2c2e4aa into main May 9, 2022
@ostafen ostafen deleted the feature/gob branch May 9, 2022 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gob encoding and internal data types
3 participants