Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-458

Alloy sql sync adapter to execute queries on fetch()

    Details

      Description

      By default, alloy will collection.fetch() from a sql adapter using this query:

      SELECT * FROM table
      

      Where *table* is the name of the table associated with the model/collection. Using a collection, a developer will now be able to do a fetch() based on a custom query, like this:

      collection.fetch({
          query: 'SELECT * FROM table WHERE someField > 10;'
      });
      

      The developer can put any arbitrary query in the *query* property of the *opts* object passed in to the fetch() function. That queried is assumed to be executed on the database associated with the given model/collection.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tlukasavage Tony Lukasavage
                Reporter:
                tlukasavage Tony Lukasavage
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration