gong023 / tiny_mysql
tiny library to use mysql. single connection, single query.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/gong023/tiny_mysql
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is auto-updated.
Last update: 2025-09-27 22:38:26 UTC
README
very very tiny and simple mysql library to execute single query by single connection.
Install
"require-dev": { "gong023/tiny_mysql": "dev-master" }
Usage
$mysqli_result = TinyMysql::execute( 'mysql query', 'host to connect', 'user to connect', 'password to connect', 'database to connect', 'port to connect', 'socket to connect' );
or
$singleton_connection = TinyMysql::getInstance($host, $user, $password, $database, $port, $socket); $mysqli_result = $singleton_connection->query('mysql query');
Mysql Connection is created before you execute query, and mysql connection is closed after query.
Implementation is very simple and tiny. It is suitable for casual use.