softmotions / ejdb-csharp Goto Github PK
View Code? Open in Web Editor NEWProject archived in favor of ejdb2. EJDB C# .Net binding
Home Page: http://ejdb.org
License: GNU Lesser General Public License v2.1
Project archived in favor of ejdb2. EJDB C# .Net binding
Home Page: http://ejdb.org
License: GNU Lesser General Public License v2.1
internal static extern bool _ejdbclose([In] IntPtr db);
Will obviously never called. Am i wrong ejdb experts?
For myself i added a EJDB Close Method
public void Close()
{
if (_db != IntPtr.Zero) {
IntPtr db = _db;
_db = IntPtr.Zero;
if (db != IntPtr.Zero) {
_ejdbsyncdb(db);
_ejdbclose(db);
}
}
}
For convenience I manage all dependencies for my projects through NuGet. Is a package for this EJDB-CSharp coming?
Hi,
Tried to stores some quite large data. and I reached to a point of 2Gb of file sixe after that the process just hung. When I stop it and start again then i get StackOverFlowexception from EJB.cs
internal static bool _ejdbopen(IntPtr db, string path, int mode) {
IntPtr pptr = Native.NativeUtf8FromString(path); //UnixMarshal.StringToHeap(path, Encoding.UTF8);
try {
return _ejdbopen(db, pptr, mode);
} finally {
Marshal.FreeHGlobal(pptr); //UnixMarshal.FreeHeap(pptr);
}
}
At this particular line: return _ejdbopen(db, pptr, mode);
public void Dispose() { if (_db != IntPtr.Zero) { IntPtr db = _db; _db = IntPtr.Zero; if (db != IntPtr.Zero) { _ejdbdel(db); } } }
However, this does not match my tests
Storing it like this:
BSONDocument.ValueOf(new {
Id = "FOOBAR" + index,
name = "FOOBAR" + index,
date = DateTime.Now.ToLocalTime().Millisecond,
records = new List() { "sherry", 1, 3.4 },
rep_modified = "M",
split = false,
type = 0,
user = "ADMI",
version = "A"
});
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.