JoaoGabrielOliveira / hyper_database_management

Database Management, simple!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Database Management

Getting Started

The first thing you need the do is set the Database using the function setDatabase.

ConnectionManagement::setDatabase([
'db' => [
    "driver" => "psql",
    "host" => "localhost",
    "port" => "8080",
    "dbname" => "clients_db",
    "user" => "root",
    "password" => "1234",
]
]);

Another example:

ConnectionManagement::setDatabase([
    'db' => [
        "driver" => "sqlite",
        "path" => __DIR__ . "/db/database.db"
]
]);

Execute querys

OperationManagement::execute("SELECT * FROM movies");
OperationManagement::feat("SELECT * FROM movies");
OperationManagement::featAll("SELECT * FROM movies");

About

Database Management, simple!


Languages

Language:PHP 100.0%