Releases: ulfox/dby
v0.3.3
v0.3.2
Commits:
Commit 1b121d8
New
- Storage tests
Changes
- sql_tests.go was split to multiple files
test
Commit 7c5211b
[todo] update
Commit 9b05be5
[cache/v1/v2] make fields private
Commit 764cd8d
The following fields of Storage have been moved to a new struct
- Data array
- Library map
- Active Document index
Commit bb2047d
We now use buffer for reads to make sure that
if an import/read operation fails, we wont be
left with an empty data array
Before we would dump the data array and then read
the file into it. If the file was corrupt, the operation
would fail and leave as with an empty data array
Now we keep the current data array and dump only
if the import/read operation has finished successfully
v0.3.1
Commits:
In this commit we included the InMem method which
when run with true will configure the state manager
method to encode / decode objects only in memory
and never write to storage
This was original v0.3.0 but we removed it since it was missing commits
v0.3.0
v0.2.1
Commit: c700f61
New
- Storage.DeleteAll method for removing all docs
- Deprecated bool from Storage.ImportDocs(string,bool)
for now we keep this for compatibility - Included multiple tests for the multi-doc methods
- Moved tests under tests directory
- Removed returning an error from Global wrappers
Fixes
- Ensure that AddDoc() and Switch will not return null pointer
when the library is empty
Commit: 89e98da
In this commit we consolidated the getFn and wrapErr
functions into a new function called WrapErr
In addition to the above change WrapErr handles
the error creation automatically.
Before we were creating the error from in the caller
and then passed it into the wrapErr function together
with the result of getFn
Now we are only passing the error/string + additional
arguments if required and call create the error withing
WrapErr
Commit: 23fc4f7
Add emptyMap function
v0.2.0
v0.1.1
Commits:
Features
- Cache.GetError: "Method for returning Cache.E"
- Convert: "New methods GetString, GetInt, GetError"
Fixes:
- Storage.AddDoc: "Now switches to the correct index after adding a new doc"
- Storage.Read: "No longer creates nil docs on read"
- Storage.Write: "No longer skips empty maps"
Tests:
- MultiDoc: "Tests for checking doc switch & add"
v0.1.0
Commits:
In this commit we included document manager
Document manager allows us to add multiple docs
and switch between docs.
Features:
- Add new docs
- Switch to new docs by index
- Switch to new docs by name
- Add name to doc
- Add name to docs by using a path
from their content - Import docs
- Global doc upsert
- Global doc update
v0.0.10
v0.0.9
Commits:
Bug fixes:
- getPath method would fail on paths that had an array. That is because getPath expected explicitly an index.
This was fixed by creating a new method for handling getPath when no index has been given - Empty keys were not blocked. We could create a map with key "".