Questions tagged [unqlite]

UnQLite is a self-contained C library for a NoSQL database. It requires very minimal support from external libraries or from the operating system.

UnQLite is a self-contained C library for a NoSQL database. It requires very minimal support from external libraries or from the operating system. This makes it well suited for use in embedded devices that lack the support infrastructure of a desktop computer. This also makes UnQLite appropriate for use within applications that need to run without modification on a wide variety of computers of varying configurations. Read more from http://unqlite.org/

16 questions
9
votes
1 answer

Why do I get "duplicate symbol reference" when including two cgo based libraries?

I'm trying to build (go build) the following: package main import ( "fmt" _ "github.com/d2g/unqlitego" _ "github.com/mattn/go-sqlite3" ) func main() { fmt.Println("Erm Compile?") } and I get an error: duplicate symbol reference:…
DanG
  • 323
  • 1
  • 9
7
votes
1 answer

How well does UnQLite perform? How does it compare to SQLite (in performance)?

I've researched on what I can about SQLite and UnQLite but there are still a few things that haven't quite been answered yet. UnQLite appears to have been released within the past few years which would attribute to the lack of benchmarks.…
Kamikaze Rusher
  • 271
  • 2
  • 10
2
votes
1 answer

How to use primary and foreign key constraints?

I have started exploring unqlite database, but the issue is that I cannot find any solution for primary and foreign constrain. For primary key every record by default it creates _id key, but still I am not able to find any thing foreign key concept.…
Rahul Kumar
  • 119
  • 1
  • 8
2
votes
1 answer

Build unqlite for Windows Phone 8.1 Store Apps (WinRT)

We are developing a C++ core for our mobile app. We would use unqlite DB. We compiled it successfully for iOS and for Android. http://unqlite.org/downloads.html When we try to compile it for WinRT, we receive a lot of errors. There is someone who…
1
vote
2 answers

How to iterate through UnqLite collection and extract data

db = UnQLite('test.db') data = db.collection('data') print(data.fetch(0)) This works. Now, how do I fetch each record and extract the necessary fields from it? I am looking for something like db = UnQLite('test.db') data = db.collection('data') for…
Gayatri
  • 152
  • 3
  • 12
1
vote
2 answers

How to extract a field value from UnQLite collection

db = UnQLite('test.db') data = db.collection('data') print(data.fetch(0)) This prints {'id': b'abc', 'type': b'business', 'state': b'AZ', 'latitude': 33.3482589, 'name': b"ABC Restaurant", 'full_address': b'1835 E ABC Rd, Ste C109, Phoenix, AZ…
Gayatri
  • 152
  • 3
  • 12
1
vote
0 answers

UnQlite database with Python 3.x

I use Python 3.4 and have problem with UnQlite database. It works with Python 2.x but in newer version after from unqlite import UnQLite db = UnQLite() the error appers: File…
Michu93
  • 5,058
  • 7
  • 47
  • 80
1
vote
1 answer

error LNK2019: unresolved external symbo UnQLite

I am trying to use UnQLite database with visual studio 2012, but when I try to open the database I got the following error: error LNK2019: unresolved external symbol "int __cdecl unqlite_open(struct unqlite * *,char const *,unsigned int)"…
user3619911
  • 107
  • 1
  • 9
1
vote
1 answer

Reading collection from UnQLite?

I'm using nobonobo's python bindings to unqlite and am running into an issue when attempting to work with a JSON document collection. In the README, there is this JX9 script: sample = ( "db_create('users'); /* Create the collection users */" …
coleifer
  • 24,887
  • 6
  • 60
  • 75
0
votes
1 answer

Unqlite python how to search collection for value that matches requirement

We are to search collection and find businesses in the county from countyToSearch. Save the name, full address, county and state to saveLocation1 How it is currently is not correct. I dont really understand the filter() def…
qca
  • 1
  • 1
0
votes
1 answer

Python: How to store a dictionary with UnQLite?

I want to store a dictionary in an UnQLite database, so I can use it later on. However UnQLite stores it as a string: >>> from unqlite import UnQLite >>> db = UnQLite() >>> db['dict'] = {'a': 5} >>> db['dict'] "{'a': 5}"
Thyrst'
  • 2,253
  • 2
  • 22
  • 27
0
votes
1 answer

Python exe - Cx_Freeze - ImportError DLL load failed

In my machine (Windows), I can use my executable of my python program. But if I try on the machine of another person(Windows), it doesn't work. The executable blocks at the line : from unqlite import UnQLite I have fixed his dependency in packages…
tawnydev
  • 1
  • 3
0
votes
0 answers

Recommendations on how to create an offline wrapper for usergrid?

The app will be written with Ionic (thus ported to iOS and Android). I am interested in Usergrid (as opposed to using Parse or Firebase), but I would need some offline functionality. If I was going to create a wrapper that would do some cacheing,…
Nate Uni
  • 933
  • 1
  • 12
  • 26
0
votes
1 answer

unqlite.h:651:15: error: changes meaning of ‘pgno’ from ‘typedef sxu64 pgno’ [-fpermissive]

Just downloaded the unqlite.c and unqlite.h, created a new project in Eclipse, copied one of the examples from unqlite.org website and I'm getting the following error: 21:37:51 **** Build of configuration Debug for project nosql **** make all…
TTKDroid
  • 231
  • 4
  • 12
-1
votes
1 answer

How can I store a C++ container as a value in Unqlite?

The Unqlite NoSQL engine has a function unqlite_kv_store() which takes a key and a value to store. Is there a way to store a C++ container (e.g. list, vector, map, array) as a value and later retrieve it without using the document format?
Amani
  • 16,245
  • 29
  • 103
  • 153
1
2