Giter Club home page Giter Club logo

goejdb's People

Contributors

keans avatar mkilling avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

goejdb's Issues

go get goejdb on raspberry pi

i am trying to build a golang-project containing ejdb on a raspberry pi (even tried qemu + raspbian)

When exectuing

go get github.com/mkilling/goejdb

im getting this error:

.../github.com/mkilling/goejdb/ejcoll.go:124: type [2147483647]_Ctype_bson larger than address space
.../github.com/mkilling/goejdb/ejcoll.go:124: type [2147483647]_Ctype_bson too large

i am not sure what causes this.

go build fails on Ubuntu

I'm trying to build on Ubuntu (Linux precise64 3.2.0-23-generic) and I get the following errors:

# github.com/mkilling/goejdb
./ejcoll.go:37: cannot use coll.ptr (type *[0]byte) as type *C.struct_EJCOLL in argument to _Cfunc_ejdbsavebson
./ejcoll.go:69: cannot use coll.ptr (type *[0]byte) as type *C.struct_EJCOLL in argument to _Cfunc_ejdbrmbson
./ejcoll.go:77: cannot use coll.ptr (type *[0]byte) as type *C.struct_EJCOLL in argument to _Cfunc_ejdbloadbson
./ejcoll.go:131: cannot use coll.ptr (type *[0]byte) as type *C.struct_EJCOLL in argument to _Cfunc_ejdbupdate
./ejcoll.go:162: cannot use coll.ptr (type *[0]byte) as type *C.struct_EJCOLL in argument to _Cfunc_ejdbsetindex
./ejcoll.go:171: cannot use coll.ptr (type *[0]byte) as type *C.struct_EJCOLL in argument to _Cfunc_ejdbtranbegin
./ejcoll.go:180: cannot use coll.ptr (type *[0]byte) as type *C.struct_EJCOLL in argument to _Cfunc_ejdbtrancommit
./ejcoll.go:189: cannot use coll.ptr (type *[0]byte) as type *C.struct_EJCOLL in argument to _Cfunc_ejdbtranabort
./ejcoll.go:199: cannot use coll.ptr (type *[0]byte) as type *C.struct_EJCOLL in argument to _Cfunc_ejdbtranstatus
./ejcoll.go:205: cannot use coll.ptr (type *[0]byte) as type *C.struct_EJCOLL in argument to _Cfunc_ejdbsyncoll
./ejcoll.go:205: too many errors

I'm using the latest version of ejdb:

git clone [email protected]:Softmotions/ejdb.git
cd ejdb
make
sudo make -C ./tcejdb install

Are these go bindings supposed to work with the latest ejdb?
Am I missing something obvious?

Thanks for any help you can provide!

No collections found after reopening database

If I insert some data to a collection, and then later try to open that database, it tells me there are no collections.

In my case I have an importer.go that inserts some data (converts from another db system, because I wanted to try Ejdb). When I run my main program afterwards, and open the database, there's nothing in it, even though the file(s) "dbname" and "dbname.collection" are both stored in the same directory.

If I query the database during the same program run, by adding something like coll.Find(...) after the importer code in importer.go, it works.

I've tried running jb.Sync(), BeginTransaction and CommitTransaction, but none of them seem to make any difference.

Is this a bug, or am I missing something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.