"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:

> I may be missing something obvious, but how can i create my own sql
> query using the existing sqlobject connection?
> e.g. (psudo code)
> data = connection.query("select * from asdf")

Almost there.


In [1]:import model

In [2]:conn = model.hub.hub.getConnection()

In [3]:res = conn.qu
conn.query          conn.queryAll       conn.queryInsertID  conn.queryOne

In [3]:res = conn.queryAll('SELECT 1;')

In [4]:res
Out[4]:[(1,)]


-- 
Jorge Godoy      <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to