2017 © Pedro Peláez
 

library easysql

Work more optimally with SQL for Performance, Security and Readability

image

easysql/easysql

Work more optimally with SQL for Performance, Security and Readability

  • Tuesday, May 15, 2018
  • by chrisholland
  • Repository
  • 2 Watchers
  • 3 Stars
  • 211 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 4 % Grown

The README.md

EasySQL

Work more effectively with SQL for Performance, Security and Code Readability:, (*1)

  • Exposes Simple API - Takes care of PDO and Prepared Statement management so you don't have to
  • Strongly-Typed returns on SELECT operations, returning instances of Entity Beans
  • Strongly-Typed INSERT operations allowing easy insertion of collections of Entity Beans
  • First-Class support for Master and Slave connections, with transparent dispatching of queries to appropriate connection
  • Optimal management of PDO Connections and Prepared Statements across an execution context
    • Reusable connections are managed via a shared "Execution Context", allowing you to use and reuse as many "Model" Class instances as convenient without constantly opening-up and tearing-down connections.
    • Each connection keeps track of "Prepared Statements" tied to each new "Query String" it sees. Should the same query be invoked via another method or class later within an Execution Context, the previously-generated Prepared Statement tied to that query will be reused.

Test Coverage Scrutinizer Code Quality Code Climate Build Status, (*2)

Compliance & Standards

More Precisely

  • This is not an ORM library. It assumes you'll be writing your own SQL queries.
  • By leveraging "Entity Beans" for INSERT and SELECT operations, spend less time juggling untyped associative arrays.
  • EasySQLConfig allows you to:

Composer Installation:

https://packagist.org/packages/easysql/easysql, (*3)

{
    "require": {
        "easysql/easysql": "dev-master"
    }
}

Sample Usage:

  • Example "BaseModel" Class
  • [Example "WorldModel" Class] (https://github.com/elchris/easysql/blob/master/com/github/elchris/easysql/tests/integration/ExampleApplicationTest.php)

Purpose

The Versions

15/05 2018

dev-master

9999999-dev https://github.com/elchris/easysql

Work more optimally with SQL for Performance, Security and Readability

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

sql tdd postgres pdo mysql psr-4 solid psr-2 prepared statements uncle bob

15/05 2018

v0.0.3

0.0.3.0 https://github.com/elchris/easysql

Work more optimally with SQL for Performance, Security and Readability

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

sql tdd postgres pdo mysql psr-4 solid psr-2 prepared statements uncle bob

08/01 2015

v0.0.2

0.0.2.0 https://github.com/elchris/easysql

Work more optimally with SQL for Performance, Security and Readability

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

sql postgres pdo mysql prepared statements

26/12 2014

v0.0.1

0.0.1.0 https://github.com/elchris/easysql

Work more optimally with SQL for Performance, Security and Readability

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

sql postgres mysql