Giter Site home page Giter Site logo

nwdatabase's Introduction

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.

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 aka NitricWare.

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.

Usage

Use Composer to install NWDataBase to your project via the composer require nitricware/nwdatabase command or your composer.json.

Alternatively you can also just include all the files from the src/ directory.

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!

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

v2.0

  • docker support
  • examples added
  • PHP 7.4 support
  • eliminated the need for dependencies

v1.1.1

  • fixed composer

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

nwdatabase's People

Contributors

nitricware avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.