Skip to content

Add union and Async support to MysqliDb.php#785

Open
vmarci21 wants to merge 1 commit intoThingEngineer:masterfrom
vmarci21:patch-1
Open

Add union and Async support to MysqliDb.php#785
vmarci21 wants to merge 1 commit intoThingEngineer:masterfrom
vmarci21:patch-1

Conversation

@vmarci21
Copy link

New:
union()
getSubUnionQuery()
::::
getAsync()
runAsync()

Union usage:
$sub = $db->subQuery();
$sub->get('table');
$db->union($sub);
$db->get('anotherTable');

or:
$sub = $db->subQuery();
$sub->get('table');

$sub2 = $db->subQuery();
$sub2->get('table2');

$db->union($sub);
$db->union($sub2);
$db->getSubUnionQuery();

New:
union()
getSubUnionQuery()
::::
getAsync()
runAsync()

Union usage:
$sub = $db->subQuery();
$sub->get('table');
$db->union($sub);
$db->get('anotherTable');

or:
$sub = $db->subQuery();
$sub->get('table');

$sub2 = $db->subQuery();
$sub2->get('table2');

$db->union($sub);
$db->union($sub2);
$db->getSubUnionQuery();
@VeNoMouS
Copy link

VeNoMouS commented Oct 1, 2018

@vmarci21 just going to leave this here for you mate :)

https://www.php-fig.org/psr/psr-2/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants