NoSQL RDBMS, Copyright (C) 1998-2001 by Carlo Strozzi. Part of NoSQL code comes from RDB, a similar package written by W.Hobbs, and has been included in NoSQL with permission from the author.
This program comes with ABSOLUTELY NO WARRANTY; for details refer to the GNU General Public License.
A copy of the GNU General Public License is included with this program, in the file COPYING.
This working draft describes, and provides instructions for the use of, NoSQL (I personally like to pronounce it noseequel), a derivative of the RDB DataBase system. The RDB system was (and still is) developed at RAND Organization by Walter W. Hobbs. Part of the NoSQL code, as well as large parts of the text of this document, have been taken directly from RDB, so a good share of the credit goes to the original author.
Other major contributors to the original RDB system, besides W. Hobbs, were:
Chuck Bush
Don Emerson
Judy Lender
Roy Gates Rae Starr
People who helped with turning RDB into NoSQL:
David Frey
Maurizio (Masar) Sartori
Vincenzo (Vicky) Belloli
Giuseppe Paternò
Paul Lussier
Seth LaForge
The NoSQL.png logo has been kindly provided by Kyle Hart.
NoSQL tends to be biased in favour of Linux. This means that, wherever it matters, NoSQL makes use of the GNU versions of the various UNIX commands, as those are the ones normally found on this UNIX workalike. NoSQL is Free Software, released under the terms of the GNU General Public License. As such, it fully qualifies as Open Source Software.
A good question one could ask is "With all the relational database management systems available today, why do we need another one ?". The main reasons are:
mawk
I think).Note: NoSQL has only been tested with mawk(1), that is Mike Brennan's implementation of the AWK programming language, and will most likely *not* work out-of-the-box with any other AWK, including gawk(1). While getting NoSQL to work also with gawk(1) should not be difficult, making it work with other AWKs may prove hard, if at all possible.
As its name implies, NoSQL is not an SQL database. The rationale behind this is well explained in the accompanying paper 4gl.ps (Postscript), or 4gl.txt (ASCII).
The data is contained in regular UNIX ASCII files, and so can be manipulated by regular UNIX utilities, e.g. ls, wc, mv, cp, cat, more, less, editors like 'vi', head, RCS, etc.
The form of each file of data is that of a relation, or table, with rows and columns of information.
To extract information, a file of data is fed to one or more "operators" via the UNIX Input/Output redirection mechanism.
There are also programs to generate, modify, and validate the data. A thorough discussion on why this type of relational database structure makes sense is found in the book, "UNIX Relational Database Management", Reference #2.
It is assumed that the reader has at least a minimum knowledge of the UNIX Operating System, including knowledge of Input/Outout redirection (e.g., STDIN, STDOUT, pipes).
Again, the key feature of NoSQL (and other similar packages mentioned in this manual), is its close integration with UNIX. Real-world problems are tipically more complex than the data models provided by many DBMS'es. Actual applications, and Web-based ones make no exception, are complex puzzles made up by many small pieces, several of which are data-related. Unlike other fourth generation systems, NoSQL is an extension of the UNIX environment, making available the full power of UNIX during application development and usage. NoSQL was designed with the UNIX shell language as its user interface. This level of integration removes the need to learn yet another set of commands to use and administer the database system. A database is just a file, and can be maintained like all other files that the user owns or has access to. Because NoSQL commands are executable programs, the UNIX shell is inherited as the primary command language of the database; no other proprietary database scripting language, to my knowledge, is as powerful and flexible as the UNIX shell. The shell-level nature of NoSQL encourages casual use of the system, and successful casual use leads to familiarity and successful formal use. This concept is much more thoroughly explained in the paper "The UNIX Shell As a Fourth Generation Language", included in the NoSQL documentation tree with the file name 4gl.ps (Postscript) or 4gl.txt (ASCII), that shows why the UNIX shell is an excellent tool for scripting database access.
As stated in the Abstract, NoSQL uses the Operator/Stream DBMS Paradigm. The main reason why I decided to turn the original RDB system into NoSQL is that the former is entirely written in Perl. Perl is a good programming language for writing self-contained programs, but Perl's pre-compilation phase and long start-up time are worth paying only if once the program has loaded it can do everything in one go. This contrasts sharply with the Operator/Stream model, where operators are chained together in pipelines of two, three or more programs. The overhead associated with initializing Perl at every stage of the pipeline makes pipelining somewhat inefficient. A better way of manipulating structured ASCII files is using the AWK programming language, which is much smaller than Perl, is more specialized for this task and very fast at startup (on my Pentium II Linux /usr/bin/mawk (POSIX AWK) is just 99K. Perl 5 is almost 500K. You get the point).
There is a mailing list for discussions related to NoSQL. The address is noseequel@texne.com. To subscribe simply send a message to minimalist@texne.com with the word "subscribe" (without the quotes) in the message subject.
Please send bug reports (fixes are most welcome :-) to the same list
noseequel@texne.com.
Always include as much information as possible, especially the content
of file nosql_version
, which is created in the NoSQL
installation directory during install.
By 'bug reports' I mean not just errors in
the code, but also grammatical mistakes, typos and bad English
constructions in the documentation, as English isn't my native
language :-)