1 Reply Latest reply on Feb 16, 2014 9:48 AM by Rob Richard

    How to use Rho::Database on the ORM database?

    Rob Richard

      I have a complex join and union SQL statement that I need to execute against my models for my app, and it looks like I can use the db.executeSql(string SQL) command.  Stupid question: how do I execute this?

       

      I have:

       

            sql = "SELECT blah blah blah..."

            db = Rho::Database

            @addresses = db.executeSql(sql)

       

      I receive:

       

                Undefined method 'executeSql' for Rho::Database:class

       

      Am I missing a require or include?  Do I need to open the Database first?  If so, how do I know that the name is?