Skip to content

silvershop/silverstripe-sqlquerylist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SilverStripe SQLQueryList

Create DB-driven SS_Lists based directly off a SQLQuery. Particularly useful for reporting.

composer require silvershop/silverstripe-sqlquerylist

But why?

The SilverStripe ORM doesn't allow you to work with advanced SQLQueries. You could pass the output of a SQLQuery to an ArrayList, but this approach will always retrieve all records, which can mean memory gets used up.

Records can only be displayed, ordered and filtered. Adding / removing and manipulating records does not work.