Skip to content
This repository has been archived by the owner on Mar 14, 2019. It is now read-only.

ulcuber/db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Mysqli helpers

Русский

Подробное описание можно найти в docblock комментариях исходного кода

Usage

$db = new mysqli(/**/);
$store = new Store($db);

$store->insert('table', ['column' => 'value']);
$store->update('table', ['id' => $id, 'column' => 'value']);

$store->getById('table', $id);
$store->getByColumn('table', 'some_id', $id);
$store->deleteById('table', $id);

$store->getLast('table');
$store->getLastN('table', $n);

$store->search('table',['column' => 'regex search string', 'anotherColumn' => 'search']);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages