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

  • SEARCH
  • Home
  • 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 7688335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:53:47+00:00 2026-05-31T19:53:47+00:00

I have a sqlite database which is opened in :memory: that needs to be

  • 0

I have a sqlite database which is opened in :memory: that needs to be streamed/serialized midway into another file.

For example:

// Some data
// more data
// SQLITE
// more data
// more data

What’s the best way to do this? One option would be to use the sqlite_backup code to write to a temporary file and then read the file back in and stream it out and then delete the temp file. This would be relatively easy to implement, but wouldn’t exactly be efficient.

The other option is to manually write out the data table by table, but that’s painful.

Is there another way to stream the database from memory directly? My filestreams use boost::iostreams::filtering_ostream as a base.

Thanks!

Also, if anyone has any usggestions for dealing with different versions where column names might be changed/added, etc, that would be great!

  • 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-31T19:53:49+00:00Added an answer on May 31, 2026 at 7:53 pm

    Yeah, I’m just going to serialize everything manually and regenerate the INSERT/CREATE statements when loading. Wish there was a better way though…

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

Sidebar

Related Questions

I have written an Android application that uses SQLite database which is saved in
I have written a simple Android application that uses a sqlite database which is
I have a SQLite database, which needs to be updated. Using the update statement
I have an sqlite database called 'ProductDatabase.sql', which I have copied into my applications
I have a log file stored in an SQLite database which I would like
I have a DataTable which I want to save to a SQLite Database Table.
I have a SQLite database that contains a huge set of log messages. I
I have a datalogging application (c#/.net) that logs data to a SQLite database. This
I have a component that i want to store to an SQLite database. public
I have sqlite database which I would like to insert values in Hebrew to

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.