tornevall / tornelib-php-database
TorneLIB - Generic database driver for MySQL, PDO, etc
6.1.2
2023-12-08 18:30 UTC
Requires
- netresearch/jsonmapper: v2.1.0
- tornevall/tornelib-php-errorhandler: 6.1.*
- tornevall/tornelib-php-utils: 6.1.*
- tornevall/tornelib-php-version: >= 6.1.0
Requires (Dev)
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2025-01-08 20:40:00 UTC
README
The rewritten database driver for the tornelib-series. Written to autoselect proper driver regardless of system content.
Testing
Test works best with a database installed. Installing it automatically is not offered yet. You could do something like this to prepare data if you need to run tests:
CREATE USER 'tornelib'@'localhost' IDENTIFIED BY 'tornelib1337';
GRANT ALL PRIVILEGES ON tornelib_tests.* TO tornelib@localhost;
CREATE DATABASE tornelib_tests;
USE tornelib_tests;
DROP TABLE IF EXISTS `tests`;
CREATE TABLE `tests` (
`dataindex` int(11) NOT NULL AUTO_INCREMENT,
`data` varchar(45) NOT NULL,
PRIMARY KEY (`dataindex`,`data`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;