A dataset represents an SQL query, or more generally, an abstract set of rows in the database. Datasets can be used to create, retrieve, update and delete records. Query results are always retrieved on demand, so a dataset can be kept around and reused indefinitely (datasets never cache results): my_posts = DB[:posts].filter(:author => 'david') # no records are retrieved my_posts.all # records are
{{#tags}}- {{label}}
{{/tags}}