Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6581779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:11:48+00:00 2026-05-25T16:11:48+00:00

Has anyone developed a singleton for accessing SQLite db? I know that there are

  • 0

Has anyone developed a singleton for accessing SQLite db? I know that there are other options like Core Data but, in my case, I need SQLite. I have looked at Apple provided singleton creation code (here) but the thing is SQLite database “stuff” is not an object, it is “typedef struct sqlite3”. So currently, I’m doubting how should I adapt this code for being singleton. Any suggestions, please 🙂

UPDATE: I have looked at FMDB framework for SQLite that does all stuff but it doesn’t implement singleton. I mean, access methods are instance not class methods. If I need to call the SQL statements from different my code places I need to pass a pointer around instead of calling some shared instance class method 🙁 So, the question remains open.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:11:49+00:00Added an answer on May 25, 2026 at 4:11 pm

    I think you should use FMDB, it is one of good wrapper libraries around for SQLite3.

    See details about FMDB here http://www.ioslib.com/library/data/fmdb/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anyone developed a PHP based Client for a WCF Service? I'm in the
Has anyone tested IE 8 developer toolbar ? is it really good like firebug
Has anyone tried installing SQL Server 2008 Developer on a machine that already has
Has anyone looked at Yahoo's ASTRA ? It's fairly nifty, but I had some
Has anyone developed a decent naming convention for MSMQ queues when using NServiceBus, where
Has anyone developed an encyclopedia or wiki of software bugs, either bug types (off-by-one,
Has anyone developed a dynamic reload mechanism for the apache commons database configuration object?
We have a system that was originally developed decades ago and has increased in
I have a RAILS 3.x application developed locally using MySQL which has data which
I have developed a USB device that communicates with linux over a simple but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.