Download the PHP package luisaedev/query-builder without Composer
On this page you can find all versions of the php package luisaedev/query-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download luisaedev/query-builder
More information about luisaedev/query-builder
Files in luisaedev/query-builder
Package query-builder
Short Description Connect with SQL databases and perform complex queries without define SQL statements manually
License MIT
Informations about the package query-builder
QueryBuilder.php
The easy way to build SQL statements
Connect with databases and compose complex SQL queries without define any SQL statement manually.
Powerful class of easy and intuitive usage
Check how the next SQL example could be easily coded in php using QueryBuilder class.
Installation
You can install QueryBuilder class via composer.
Requirements
QueryBuilder use PHP version 8.0 or higher and PDO extension .
Connection with database (Constructor Class)
Arguments
Argument name | Value Type | Description | Default Value |
---|---|---|---|
$connectionData | array | Array with connection data values | |
$throws | bool | Defines whether the contained PDO instance should throws PDOExeption | true |
Throws
Exception Class | Code | Description |
---|---|---|
PDOException | All PDO exceptions throws by PDO class |
Any bug?
Please, don't hesitate to contact me if you found any error. You can write me at [email protected]
Documentation
Methods
beginTransaction()
addColumn(name, value)
addColumns(columns)
addFrom(table, join)
addGroupBy(stm)
addOrderBy(keyword)
andWhere(condition, params)
bindParam(name, value, type)
bindParams(params)
commit()
count(expression, table, match)
delete(table)
errorExists()
errorInfo()
execute()
exists(table, pk)
fetch()
fetchAll()
fetchObject()
from(table, join)
get(table, pk, columns)
getColumns()
getParams()
getSQL()
groupBy(stm)
having(clause)
insert(table, columns)
insertIgnore(table, columns)
isAutocommit()
lastInsertId()
limit(start, end)
match(arg1, arg2, arg3)
orderBy(keyword)
orWhere(condition, params)
query(query, params)
replace(table, columns)
rollBack()
rowCount()
select(columns, table)
selectDistinct(columns, table)
update(table, columns)
where(condition, params)
xorWhere(condition, params)
Properties
dbname
driver
host
port