Skip to content

Commit

Permalink
Merge pull request #26 from carvilsi/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
carvilsi authored Oct 8, 2024
2 parents f2d71e9 + 5c4f757 commit 8a672a2
Show file tree
Hide file tree
Showing 47 changed files with 2,656 additions and 566 deletions.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ GRUPHST_MAX_MEM_USAGE=100
# err
# error
GRUPHST_LOG_LEVEL=info

# delimiter character for CSV import-export
GRUPHST_CSV_DELIMITER=;
2 changes: 2 additions & 0 deletions .env-test
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ GRUPHST_MAX_MEM_USAGE=0.1
# err
# error
GRUPHST_LOG_LEVEL=foobar
# delimiter character for CSV import-export
GRUPHST_CSV_DELIMITER=;
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ tags
gruphst.bin
*.grphst
tarpaulin-report.html
tests/data/export_custom.csv
tests/data/middle-earth-enemies.csv
tests/data/empty.csv
middle-earth-enemies.csv
export_csv_filename.csv
24 changes: 22 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
# Changelog

# [v1.0.0](https://github.com/carvilsi/gruphst/releases/tag/v1.0.0) (2024-08-28)

# [v0.15.0](https://github.com/carvilsi/gruphst/releases/tag/v0.15.0) (2024-10-08)

- deprecating persists method and adding save one
- adding warning for deprecated method persists()
- added method to remove a vault
- implemented import-export from and to CSV and adding some examples; improving documentation
- changing classic for loop into iter(), since allegedly it is slightly faster
- adds test for import from CSV when headers are not present and error checking when the relation for an Edge is missing on a CSV row import file
- added benchmarking for CSV import file in order to improve the performance of the function
- implementing GruPHstError for better error handling
- adding argon2 implementation for hashed values for attribute vertex
- adding examples for argon2 hashes
- added method for vertex to retrieve all attributes keys and vec_u8 ones
- refactoring and splitting graphs queries
- added method find_edges_with_vertex_attr_vec_u8_equals_to for graphs query
- renaming a method to maintain consistency
- added methods for edge queries to cover vector u8 vertex attributes
- adding has_vertex_with_attr_key_like method for edge queries and some renaming there
- adds method has_attr_key_like for vertex
- implemented vertex queries related with Vec<u8> attributes
- improves vertex queries added vertex queries related with u8 vector attributes
- implemented new method to add a collection of edges into the graph vault
- added custom path to persists file

# [v0.13.0](https://github.com/carvilsi/gruphst/releases/tag/v0.13.0) (2024-08-19)
Expand Down
153 changes: 151 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gruphst"
version = "1.0.0"
version = "0.15.0"
edition = "2021"
description = "An in-memory graph database"
license = "MIT"
Expand All @@ -18,10 +18,17 @@ uuid = { version = "1.9.1", features = ["v4", "fast-rng", "macro-diagnostics"] }
log = "0.4.21"
simple_logger = "5.0.0"
dotenv = "0.15.0"
argon2 = "0.5.3"
thiserror = "1.0.63"
csv = "1.3.0"

[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }

[[bench]]
name = "gruphst_memory_watcher"
harness = false

[[bench]]
name = "gruphst_import_from_csv"
harness = false
Loading

0 comments on commit 8a672a2

Please sign in to comment.