2017 © Pedro PelĂĄez
 

library nwdatabase

An XML driven simple database solution for projects where SQLite is not available and MySQL seems overpowered.

image

nitricware/nwdatabase

An XML driven simple database solution for projects where SQLite is not available and MySQL seems overpowered.

  • Saturday, October 24, 2015
  • by nitricware
  • Repository
  • 2 Watchers
  • 7 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

NWDataBase

Introduction

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

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., (*2)

NWDataBase was created by Kurt Höblinger aka NitricWare., (*3)

Dependencies

Unlike version 1.x, NWDatabase 2.x and 3.x does not require any additional packages. PHP Extension ext-dom must be installed, however., (*4)

Usage

Use Composer to install NWDataBase to your project via the composer require nitricware/nwdatabase command or your composer.json., (*5)

Alternatively you can also just include all the files from the src/ directory., (*6)

require("NWDatabase.php");
require("NWDBRecord.php");

use NitricWare\NWDatabase;
use NitricWare\NWDBRecord;

Functions

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

With NWDataBase you can:

  • Create a database
  • Create columns
  • Insert records
  • Fetch records
  • Update records
  • Delete records
  • Search for records
  • 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

v3.0 - PHP 8.0 support - makes better use of classes and types, (*8)

v2.0 - docker support - examples added - PHP 7.4 support - eliminated the need for dependencies, (*9)

v1.1.1 - fixed composer, (*10)

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, (*11)

v1.0.2 - bugfixes - whitespace fixes, (*12)

v1.0.1 - fixed XML layout - using new NWLog 1.0.1, (*13)

v1.0 - initial release, (*14)

The Versions

24/10 2015

dev-master

9999999-dev https://github.com/nitricware/nwdatabase

An XML driven simple database solution for projects where SQLite is not available and MySQL seems overpowered.

  Sources   Download

MIT

The Requires

 

database php xml