2017 © Pedro Peláez
 

library pdo

image

dbfit/pdo

  • Sunday, March 4, 2018
  • by abraaolevi
  • Repository
  • 1 Watchers
  • 1 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Dbfit

Facilitating day-to-day SQL queries with PDO., (*1)

ATTENTION: it's a experimental version. Don't use it in production., (*2)

INSTALLATION

composer require dbfit/pdo

USAGE

Simple queries:, (*3)

$dbfit = new Dbfit($host, $user, $password, $database);
$result = $dbfit->query("SELECT * FROM users");

Transactions queries:, (*4)

$dbfit->getConnection()->beginTransaction();
$dbfit->query($sql);
$dbfit->query($sql);
$dbfit->query($sql);
$dbfit->getConnection()->endTransaction();

You can cancel a transaction using $dbfit->getConnection()->cancelTransaction();, (*5)

Changelog

  • v1.0.3
    • Adding flexybility with prepareQuery method
  • v1.0.2
    • Some bugfixes at ConnectionManager
  • v1.0.1
    • Fixing composer.json
  • v1.0.0
    • Initial version

Roadmap

  • select method that returns result data
  • insert method that returns insert_id
  • update method that returns number of affected rows
  • delete method that returns number of affected rows
  • Other auxiliar methods: join, where, groupBy, having, orderBy limit, offset
  • Aggregates methods: count, distinctCount, max, min, avg, sum

The Versions

04/03 2018

v1.0.0

1.0.0.0

  Sources   Download

08/01 2017

dev-master

9999999-dev https://github.com/abraaolevi/dbfit

PDO database library for any project php

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-pdo *

 

database pdo

08/01 2017

1.0.3

1.0.3.0 https://github.com/abraaolevi/dbfit

PDO database library for any project php

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-pdo *

 

database pdo