crystal-community / leveldb Goto Github PK
View Code? Open in Web Editor NEWCrystal binding for LevelDB
License: GNU Lesser General Public License v3.0
Crystal binding for LevelDB
License: GNU Lesser General Public License v3.0
After putting 60 entries into the database... every 20 entries have a different key schema, e.g.
1st 20: "messages/year/month/index"
2nd 20: "locations/year/month/index"
3rd 20: "something/someone/anyone/index"
When I use the iterator to seek out "messages"... I print out the messages keyed entries correctly and goes on to print the other entries which aren't related to messages... the whole time iterator.valid?
happens to be true. After printing the said entries, it adds the following:
Invalid memory access (signal 11) at address 0x18
[0x430906] ???
[0x426280] __crystal_sigfault_handler +32
[0x7f13536a1390] ???
[0x7f1353e60184] ???
[0x7f1353e4750a] ???
[0x7f1353e39c3d] leveldb_iter_key +13
[0x40eef0] __crystal_main +15296
[0x411828] main +40
[0x7f1352c84830] __libc_start_main +240
[0x40b259] _start +41
[0x0] ???
This is the iterator part of my code
while iterator.valid?
iterator.next
puts "#{iterator.key} - #{iterator.value}"
end
iterator.destroy
The readme suggests using 0.2.0 in the shard.yml, but that version can't be resolved currently.
An old issue was opened as far back as January this year, not even a comment on the issue by the maintainers.
Can't resolve 0.2.0 when installing with the README.md's instruction... if you happen to remove the version part you get this error for version 0.1.0
Error in src/testlevel.cr:4: while requiring "leveldb"
require "leveldb"
^
in lib/leveldb/src/leveldb.cr:1: while requiring "./leveldb/*"
require "./leveldb/*"
^
Syntax error in lib/leveldb/src/leveldb/db.cr:9: unexpected token: as
@err_ptr = pointerof(@err_address) as Pointer(UInt64)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.