use StaticDriver\StaticDriver; StaticDriver::loadDriver('pdo_mysql', [ 'user' => 'username', 'password' => 'password', 'host' => 'localhost', 'dbname' => 'database_name' ]);
use StaticDriver\Query; $result = Query::execute("SELECT * FROM table_name");
use StaticDriver\Query; Query::execute("INSERT INTO table_name (column_one, column_two) VALUES (?, ?)", ['value_one', 'value_two']);In this example, we're using the `Query` class again to execute an insert statement. We pass in our SQL statement with placeholders for the values, and then pass in the actual values as an array. The package library for the PHP Static Driver is `static-database-driver`.