Author Topic: async IO database example?  (Read 1741 times)

Offline quixadhal

  • BFF
  • ***
  • Posts: 642
    • View Profile
    • WileyMUD
async IO database example?
« on: May 05, 2013, 02:10:34 PM »
So, in my continuing to slowly poke things into my documentation wiki, I was reminded of something that needs a small quick example, somewhere.

Wodan has stated that Discworld no longer uses the python database helper script, and now uses package_async.  Is there any chance a very small example could be posted in here?

Basically just connect, do a select, do a couple of insert/updates in a transaction block, and disconnect.

At least that way new users wouldn't have to paw through the source code just to figure out how to do basic DB operations. :)

Offline FallenTree

  • BFF
  • ***
  • Posts: 484
    • View Profile
Re: async IO database example?
« Reply #1 on: May 06, 2013, 05:02:51 PM »
do you just need PACKAGE_DB examples? or PACKAGE_ASYNC examples?

I have some code around for db operations, but havn't tried async yet.

Any chance you can open-up the wiki soon? I tried to modify before but it won't let me register.

Offline quixadhal

  • BFF
  • ***
  • Posts: 642
    • View Profile
    • WileyMUD
Re: async IO database example?
« Reply #2 on: May 06, 2013, 06:27:01 PM »
Actually, I was hoping to see the two used together.  With a working database interface, I'd have only marginal use for file I/O. :)

I'll try to poke at the wiki a bit more, and at least figure out how to get you registered so you can change stuff.