Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

.net app with sqlite db

Posted on 2013-02-06
2
Medium Priority
?
421 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 2000 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

722 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