On Mar 2, 2007, at 5:57 PM, Rich Shepard wrote:
> I would like to see an example of a dictionary cursor that RD
> accepts as
> input. This will allow me to query the sqlite3 database, extract
> the table
> data, and manually prepare the cursor.
I ran a custom report against the standard zipcodes demo database,
and the data in the rfxml file looked like:
<TestCursor>
<record czip="u'60001'"
ctimezonediff="u'+6'" cstateprov="u&a
<record czip="u'60002'"
ctimezonediff="u'+6'" cstateprov="u&a
<record czip="u'60004'"
ctimezonediff="u'+6'" cstateprov="u&a
<record czip="u'60005'"
ctimezonediff="u'+6'" cstateprov="u&a
<record czip="u'60006'"
ctimezonediff="u'+6'" cstateprov="u&a
<record czip="u'60007'"
ctimezonediff="u'+6'" cstateprov="u&a
<record czip="u'60008'"
ctimezonediff="u'+6'" cstateprov="u&a
<record czip="u'60009'"
ctimezonediff="u'+6'" cstateprov="u&a
<record czip="u'60010'"
ctimezonediff="u'+6'" cstateprov="u&a
<record czip="u'60011'"
ctimezonediff="u'+6'" cstateprov="u&a
</TestCursor>
That's the XML, with all the escaping. Basically, though, a record
is a dictionary with column names for keys and column values for
values. A cursor's dataset consists of a tuple of such records.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users