Code Monkey home page Code Monkey logo

unidb's Introduction

UniDB (MySQL, PostgreSQL, SQLite)

PHP database object library with unified codebase for using MySQL, PostgreSQL and SQLite databases

License: GNU GPLv3

Description

UniDB is an object library that provides a unified codebase for connecting to and using either MySQL, PostgreSQL or SQLite databases. Without knowing any internals of specifics, you can use the same code to talk to any of these databases. Changing the underlying database in your application will require no change in your code at all, if you are using the classes provided in this package. You can also use more than one type of databases in your application using UniDB objects.

Using UniDB, you can get the list of supported object types in a database, like views, trigger and iterate over the list of objects. The CRUD mechanism in UniDB is extremely simple and elegant, and avoids the data from being polluted with external script variables as it is contained within the database object. Apart from basic CRUD functionality, UniDB allows a simpler and elegant approach to work with multiple queries and results set within your PHP application.

Requirements

  • PHP 5.4 or above one of more of the following databases/servers
  • MySQL server ( version 4 or 5 )
  • PostgreSQL ( version 9 )
  • SQLite databases ( a sample db is provided in the package )

Usage

Include the desired class file in your php code, create an object and use the object as per your requirements. See demos for sample code.

Please also make sure specify the correct host, username and password in demo folder config.php file before running the demos.

unidb's People

Contributors

samnan avatar

Stargazers

 avatar

Watchers

 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.