mirror of
https://github.com/bitwarden/android.git
synced 2024-11-02 16:14:00 +03:00
25 lines
634 B
C#
25 lines
634 B
C#
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<LoginData>();
|
|
_connection.CreateTable<AttachmentData>();
|
|
_connection.CreateTable<SettingsData>();
|
|
}
|
|
}
|
|
}
|