Skip to content

Releases: ulfox/dby

v0.3.3

15 Sep 12:13
11eaa40
Compare
Choose a tag to compare

Commits:

Fix interface conversion error
Additional info: #26

v0.3.2

12 Sep 14:31
Compare
Choose a tag to compare

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

11 Sep 15:05
Compare
Choose a tag to compare

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

11 Sep 15:03
Compare
Choose a tag to compare

-- release removed, had issues with the state file, issue was fixed on 5e12bf2

v0.2.1

08 Sep 20:36
Compare
Choose a tag to compare

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

06 Sep 21:46
Compare
Choose a tag to compare

Commits:

Include Global Method for GetFirst and FindKeys
[storage] include delete doc method

v0.1.1

06 Sep 19:52
3e652ca
Compare
Choose a tag to compare

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

06 Sep 00:57
530ca18
Compare
Choose a tag to compare

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

05 Sep 16:26
0826ed9
Compare
Choose a tag to compare

Commits:

Fix key path finding issue

v0.0.9

05 Sep 10:19
c606367
Compare
Choose a tag to compare

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 "".