You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Debugging/Logging (can be disabled)
When a query is rant the total time it takes should be logged
The sql statement that is created should be logged
When there are multiple sources in one statement each source should have it’s own statement logged
Find the best balance between building all classes at one time, and calling the db to make sure a class is a table.
Research:
Would like to have a method that will allow the result to be an array, and the result can be natively interpreted as an object/associative array and also only make db calls after data is being accessed.
e.g.
$tableResults = Table::As(’t’)->Select(‘Id, Name’); //no db calls made
print_r($tableResults); //an array is printed
print_r($tableResults); //an array is also printed
MVP 1:
The ability to pull data from more than one model from two different connections in one statement (both mysql based).
Debugging from above
MVP 2:
Allow many ORMs or db connections
MVP 2b:
Ability for the Select class to be serializable as an array of the results of the statement (if possible)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Goals
Allow many ORM or db connections
Debugging/Logging (can be disabled)
When a query is rant the total time it takes should be logged
The sql statement that is created should be logged
When there are multiple sources in one statement each source should have it’s own statement logged
Find the best balance between building all classes at one time, and calling the db to make sure a class is a table.
Research:
Would like to have a method that will allow the result to be an array, and the result can be natively interpreted as an object/associative array and also only make db calls after data is being accessed.
e.g.
$tableResults = Table::As(’t’)->Select(‘Id, Name’); //no db calls made
print_r($tableResults); //an array is printed
print_r($tableResults); //an array is also printed
MVP 1:
The ability to pull data from more than one model from two different connections in one statement (both mysql based).
Debugging from above
MVP 2:
Allow many ORMs or db connections
MVP 2b:
Ability for the Select class to be serializable as an array of the results of the statement (if possible)
All reactions