On Jun 16, 3:47 pm, Jeff Willden <jeff.will...@gmail.com> wrote: > Anyone point me to a synchronous example of using felixge's node-mysql for > an initialization? Or another module? Examples I've seen are async with a > callback. I use async in my app, but I'd like a sync call before setting up > the routes in express. I'd rather not have to rewire the initialization of > the app.
Why not just write two functions, an init() and a "main?" Call init() on the first tick and "main" somewhere in init() after you have finished your queries. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en