Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Connecting to existing SQLite database

$
0
0

How do you connect to an EXISTING sqlite database from your android app with SQLite-net? Frankly I am surprised that there isn't much available information out there on this topic, and I am simply appalled at the level of difficulty and lack of documentation about this.

In my repository I have a line:

var db = new SQLiteConnection ("D:\Projects\Testtest\Database\TestDB.db3");

All I'm getting is the cannot connect to database error. I've changed the file extension to .sdb, .db, and .db3 without any success, and I've been searching online for two hours and have not found a working example. Most examples I see create a DB on the fly.

Guys, connecting to an existing database should be the simplest of all tasks. It should not be this difficult, and there should be more documentation on this.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>