duncan3dc / sql-class
A simple database abstraction layer, with an on disk caching facility.
Installs: 77 497
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^7.2 || ^8.0
Requires (Dev)
- duncan3dc/object-intruder: ^0.3 || ^1.0
- mockery/mockery: ^1.3
- phpunit/phpunit: ^8.5.29
- dev-main
- 2.0.x-dev
- 1.9.1
- 1.9.0
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.18
- 1.6.17
- 1.6.16
- 1.6.14
- 1.6.13
- 1.6.12
- 1.6.11
- 1.6.10
- 1.6.9
- 1.6.8
- 1.6.7
- 1.6.6
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.6
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.9
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-php-8.3
- dev-table-class
- dev-2.0-query-builder
- dev-2.0-event-emitter
- dev-2.0-db2
This package is auto-updated.
Last update: 2024-11-18 15:49:49 UTC
README
A simple database abstraction layer, with an on disk caching facility.
Full documentation is available at http://duncan3dc.github.io/sql-class/
PHPDoc API documentation is also available at http://duncan3dc.github.io/sql-class/api/
Examples
The classes use a namespace of duncan3dc\SqlClass
use duncan3dc\SqlClass\Sql;
$sql = new Sql([ "mode" => "mysql", "hostname" => "localhost", "username" => "root", "password" => "password", ]); $row = $sql->select("table_1",[ "field1" => "one", "field2" => "two", ]); $sql->update("table_1",[ "field3" => "three", ],[ "field1" => $row["field1"], "field2" => $row["field2"], ])