Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

file-based NoSql database?

Tags:

php

sqlite

nosql

I am interested in building a web app (PHP5) based on a NoSql database (with structs storage, like MongoDB).

But I am also a big fan of SQLite spirit and not having to bother about configuring a separate server.

Do you know of any file-based NoSQL database ?

Thanks in advance, Raphael

like image 331
Raphael Jolivet Avatar asked Nov 28 '11 13:11

Raphael Jolivet


People also ask

What are NoSQL document databases?

What are NoSQL Document Databases? NoSQL document databases are based on a model that does not require SQL and tables, unlike relational databases. Instead of using tables with the data types, columns, rows, schemas, and tabular relations used in relational databases, NoSQL databases use documents with data type descriptions and values.

What is the difference between RDBMS and NoSQL?

While a variety of differences exist between relational database management systems (RDBMS) and NoSQL databases, one of the key differences is the way the data is modeled in the database. In this section, we'll work through an example of modeling the same data in a relational database and a NoSQL database.

What is NoSQL and why is it important?

First NoSQL is not a database but rather the idea that database technologies other than Relational Database systems (RDBMS ie those that use SQL as their query language) may be better fits for certain use cases.

What is the data model we design for a NoSQL database?

The data model we design for a NoSQL database will depend on the type of NoSQL database we choose. Let's consider how to store the same information about a user and their hobbies in a document database like MongoDB. In order to retrieve all of the information about a user and their hobbies, a single document can be retrieved from the database.


1 Answers

you can use unqlite + php-ext-unqlite

UnQLite is a in-process software library which implements a self-contained, serverless, zero-configuration, transactional NoSQL database engine. UnQLite is a document store database similar to MongoDB, Redis, CouchDB etc. as well a standard Key/Value store similar to BerkeleyDB, LevelDB, etc.

A complete database with multiple collections, is contained in a single disk file. The database file format is cross-platform, you can freely copy a database between 32-bit and 64-bit systems or between big-endian and little-endian architectures.

or use MongoLite

Schemaless database on top of SqLite

or use SDB

like image 189
seyed Avatar answered Oct 13 '22 16:10

seyed