1
0
mirror of https://github.com/bitwarden/mobile.git synced 2025-01-25 21:41:26 +01:00
bitwarden-mobile/src/Android/Services/SqlService.cs
2016-05-02 02:52:09 -04:00

23 lines
629 B
C#

using System;
using System.IO;
using Bit.App.Abstractions;
namespace Bit.Android.Services
{
public class SqlService : ISqlService
{
public SQLite.SQLiteConnection GetConnection()
{
var sqliteFilename = "bitwarden.db3";
var documentsPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal); // Documents folder
var path = Path.Combine(documentsPath, sqliteFilename);
Console.WriteLine(path);
var conn = new SQLite.SQLiteConnection(path);
// Return the database connection
return conn;
}
}
}