NWDataBase is a light weight XML-based database system for webspaces where SQLite is not available and MySQL seems over-powered.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
NWDatabase.php
README.md
composer.json

README.md

NWDataBase 1.1

Introduction

NWDataBase is an XML-based database system for small databases. It provides a light weight database solution for webspaces where no SQLite is available. The system provides simple functions, including a search function.

License

The NWDataBase system is distributed under the MIT License which allows you to use it privately and commercially, to distribute, modify and sublicense it. You may not hold me liable and must include my name in the credits of your work. NWDataBase was created by Kurt Höblinger as NitricWare.

Requirements

NWDataBase requires NWFileOperations, NWLog (both available on Github) and PHP 5.x.

Usage

Use Composer to install NWDataBase to your project via the composer require nitricware/nwdatabase command. Alternatively you can also just include the NWDataBase.php-file.

require "./path/to/NWDataBase.php";
use NitricWare\NWDataBase;

Done. No installation required.

Functions

For information about the functions of the class, please check the documentation inside the .php-file!

With NWDataBase you can:

  • Create a database
  • Create columns
  • Create rows
  • Read rows
  • Update rows
  • Delete rows
  • Search for rows
  • Draw an ASCII table with the database content
  • Delete a database
  • Sort a result by a specified column ascending or descending
  • Limit a result to a specified amount and start by a specified offset if desired

Changelog

v1.1

  • added limit parameter to NWDBSearch and NWDBGetRecords
  • the array structure of NWDBGetRecords has changed to match the structure of NWDBSearch
  • added the possibility to sort a result
  • made NWDataBase available to composer

v1.0.2

  • bugfixes
  • whitespace fixes

v1.0.1

  • fixed XML layout
  • using new NWLog 1.0.1

v1.0

  • initial release