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 6909427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:41:16+00:00 2026-05-27T08:41:16+00:00

I want to have an application that has a permanent database file(on a hard

  • 0

I want to have an application that has a permanent database file(on a hard drive) and every time I run my application it needs to create another database file(temporary file in RAM) that will store certain information. This temporary file will be flushed to permanent storage(permanent database file) one time at the end of execution. I was advised to use “SQLite Online Backup API” http://www.sqlite.org/backup.html but got a question. Will temporary file(one in memory) update my backup file every time I exit application or will it erase all old data contained in backup file and save only information that is in memory?

Is it something like this?

char zFilename[] = "permanent.db"; 
char *db_name= ":memory:";

rc = sqlite3_open(db_name, &db);
//write some data to db
.........

//end of application flush db(memory) to permanent.db file
loadOrSaveDb( db, zFilename, 1);

I.e. I need to have one permanent database file that will be updated after every run of my application.(it should contain data from old runs and update data from new runs)

Thanks in advance.

  • 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-27T08:41:17+00:00Added an answer on May 27, 2026 at 8:41 am

    From the SQLite Online Backup API documentation:

    The online backup API allows the contents of one database to be copied
    into another database, overwriting the original contents of the
    target database
    . The copy operation may be done incrementally, in
    which case the source database does not need to be locked for the
    duration of the copy, only for the brief periods of time when it is
    actually being read from. This allows other database users to continue
    uninterrupted while a backup of an online database is made.

    As far as I can tell, any data from previous runs will be lost, unless, of course, you load it to the in-memory database when your program starts, so that it will be copied back at the end.

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

Sidebar

Related Questions

I have a web application that I want to run some system tests on,
guys I want to create an application that has a 3D display. I want
I have an application that has two buttons, and I want to detect when
I have an application that has many views (Using tab bar controller). I want
I have an application that has a Database of vehicles with multiple fields. I
I have an application that has menu keyboard shortcuts and text boxes. I want
I have an android application that has a button which I want to have
I have this web application that has grown to an unmanageable mess. I want
We have an application that we want to make available to the general internet-using
I have this application that I want to support multi languages. I thought the

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.