Download the PHP package garder500/sqliberty without Composer
On this page you can find all versions of the php package garder500/sqliberty. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download garder500/sqliberty
More information about garder500/sqliberty
Files in garder500/sqliberty
Package sqliberty
Short Description A package to make easier sql requests
License MIT
Informations about the package sqliberty
SQLiberty - SQLiberty is a library for make easy the use of SQL in PHP
Installation
Composer
Usage
Documentation
Database
| Method | Description |
|---|---|
| model | Create a new model |
Example
Model
Model are the representation of a table in the database, you can use the model to make queries to the database.
| Method | Description |
|---|---|
| create | Create a new row in the table |
| update | Update a row in the table |
| delete | Delete a row in the table |
| findAll | Find all rows in the table that match the condition |
| findFirst | Find the first row in the table that match the condition |
| get | Get a row in the table based on the primary key |
Example
Regular use flow of the model :
Model represent a table in the database, but you can specify multiple tables in the model, the model will be able to make queries between the tables.
You can also specify the primary key of the table, if you don't specify the primary key, the model will use the keyword "id" as primary key or if you didn't specify the "id" column, the model will don't use a primary key.
findFirst/ findAll work in the same way and are even recursive Search ! for example :
All versions of sqliberty with dependencies
ext-pdo Version *