-
Notifications
You must be signed in to change notification settings - Fork 21
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
Key Iterator & 1.0 compatibility #19
Conversation
Iterate over a database with String keys with: for key in keys(cursor, String)
You should target 0.7/1.0 and drop compatibility with lower versions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop support of older Julia versions
test/runtests.jl
Outdated
using Base.Test | ||
using Compat | ||
using Compat.Test | ||
push!(LOAD_PATH, joinpath(dirname(@__FILE__), "../src")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to modify LOAD_PATH
.
REQUIRE
Outdated
@@ -1,2 +1,3 @@ | |||
julia 0.6 | |||
BinDeps | |||
Compat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop Compat
& target 0.7+
src/LMDB.jl
Outdated
isdefined(:Docile) && eval(:(@document)) | ||
using Compat | ||
|
||
if VERSION < v"0.7" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove any code incompatible with 0.7 in all files.
Codecov Report
@@ Coverage Diff @@
## master #19 +/- ##
========================================
Coverage ? 97.4%
========================================
Files ? 5
Lines ? 154
Branches ? 0
========================================
Hits ? 150
Misses ? 4
Partials ? 0
Continue to review full report at Codecov.
|
Finally figured out Travis/Pkg3 enough to get tests to pass |
I set |
Fixes #7 |
Thanks! |
Builds on top of #18 with minor additional 0.7 compatibility fixes
Adds an iterator type over LMDB keys and a
keys
method to return one. To iterate overInt
keys andFloat64
values,