I suggest you ...

iSql Synchronous Query Execution

Hello...

Is it possible to execute the queries synchronously? the nature of my application requires some of the queries to happen like that.

3 votes
Vote 0 votes Vote Vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service

    You'll receive a confirmation email with a link to create a password (optional).

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    JoseJose shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    2 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service

      You'll receive a confirmation email with a link to create a password (optional).

      Signed in as (Sign out)
      Submitting...
      • mobile[foo]Adminmobile[foo] (MobileFoo, MobileFoo) commented  ·   ·  Flag as inappropriate

        Hi,

        The API is asynchronous, but you could build a synchronous implementation on top - probably most easily by waiting on some appropriate semaphore until the sqlQuery:didFinishExecuting method is called, then continuing.

        Obviously doing such synchronous queries on the UI thread would not be a good idea!

        Thanks,
        Rob
        mobile[foo]

      • jSparksjSparks commented  ·   ·  Flag as inappropriate

        I've also been asked to inquire about this by a fellow, and much more experienced, programmer than myself. I'm building an app using the iSQL SDK now, and so far we've been able to work with its asynchronous nature, but are wondering about future implementations.

      Knowledge Base and Helpdesk