mirror of
https://github.com/bitwarden/mobile
synced 2025-12-19 09:43:27 +00:00
24 lines
526 B
C#
24 lines
526 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>();
|
|
}
|
|
}
|
|
}
|