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
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.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With