05-27-2016, 01:33 PM
I am going to go through and document this better but...
Many of the methods in the DB class do not fully process the query by default. I tried to make them, but that breaks other things in the system as posted above.
When you see a method like...
<pre></pre>
The method is actually really flexible because you can tell it what you want to do with it.
So you can append
to get the first result back
to get a count of the results
to get ALL the results
to find out the last highest number id associated with that query (GREAT for when you insert something into the db and you need to know what id was automatically created by that query so you can immediately use it.
Again, more documentation is coming, but things like and are designed to be used in conjunction with other methods in the db class.
Many of the methods in the DB class do not fully process the query by default. I tried to make them, but that breaks other things in the system as posted above.
When you see a method like...
Code:
public function get($table, $where){
Code:
return $this->action('SELECT *', $table, $where);
<code></code> }
The method is actually really flexible because you can tell it what you want to do with it.
So you can append
Code:
->first()
Code:
->count()
Code:
->results()
Code:
->lastId()
Again, more documentation is coming, but things like
Code:
findById
Code:
get