bitwarden-android/src/App/Services/DatabaseService.cs

24 lines
525 B
C#
Raw Normal View History

2016-05-02 09:52:09 +03:00
using System;
using Bit.App.Abstractions;
using Bit.App.Models.Data;
using SQLite;
namespace Bit.App.Services
{
public class DatabaseService : IDatabaseService
{
protected readonly SQLiteConnection _connection;
public DatabaseService(ISqlService sqlService)
{
_connection = sqlService.GetConnection();
}
public void CreateTables()
{
_connection.CreateTable<FolderData>();
_connection.CreateTable<SiteData>();
}
}
}