hellsan631 / LogosDB

A database micro-framework for creating simple DB interaction without the need for a full framework
1 stars 0 forks source link

LSQL Language #14

Open hellsan631 opened 9 years ago

hellsan631 commented 9 years ago

Create new PSQL "like" syntax that allows stringing together of SQL syntax.

'LSQL' should be lazy loading.

Syntax Examples:

$call = LSQL::Select("all")->Where("id",">","20")->Query("limit", 10);

//Dumps an SQL string
var_dump($call);

//User construction method would run the call, and add in table name User
$users = new User($call);

OR 

$users = $call->run("tableName");

OR 

$users = $call->from("tableName")->run();