Solved

.net app with sqlite db

Posted on 2013-02-06
2
385 Views
Last Modified: 2013-02-11
Hi -
I have a sqlite database that uses Write-Ahead Log (wal). So the main db does not update live.

I need to right an app in .net (vb) that gets real time stats.

If I copy the db file and the wal file to my local hard drive, is there anyway to flush/merge the data to update the main db.

e.g
file 1: test.db (main db)
file 2: test.db-wal (wal file holding current information)

want to flush test.db-wal into test.db  so the the most resent information is in the main db

Thanks in advance
0
Comment
Question by:doctor069
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
madgino earned 500 total points
ID: 38862961
The synchronization between wal and main is called "checkpoint"
It seems that doing a "checkpoint" is not possible using .NET library, at least there is nothing documented about this.

The operation seems to be available from the C library, you have below the documentation but I couldn't find an example.

Theoretically you can call C libraries from .NET.

http://www.sqlite.org/c3ref/wal_checkpoint_v2.html
http://www.sqlite.org/c3ref/wal_checkpoint.html



https://www.google.com/#hl=en&q=using+c+library+in+.net
0
 

Author Closing Comment

by:doctor069
ID: 38877120
Thanks for the insight. I looked for a .net solution but there is nothing out there...
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question