forked from minetest-go/mtdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement block iterator (minetest-go#56)
* fix: sorry, too many connections. database/Sql.Rows.Close() should be called as it is a safe to call and idempotent; not calling it will keep the underlying connection open. Added an integration test to reproduce the issue and a fix to it. Fixes minetest-go#53 * feat: implement block iterator for map data. The iterator returns a go channel to allow for concurrent access over all the data in the map, skipping any non-existing blocks. Fix minetest-go#55 * refactor: renamed to AsBlockPos. * testing: added error handling for iterator. Fixed an infinite loop/invalid results returned by the Iterator if database/data is corrupted. * feature: allow early-stopping the iterator. Implemented the Closer type and methods to allow for callers to early stop the iteretor when they're done.
- Loading branch information
Showing
9 changed files
with
418 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/mtdb | ||
/mtdb | ||
docker-compose.override.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.