using SQLite;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WorkFlowCheck.MAUI.DataLayer.Entities;

namespace WorkFlowCheck.MAUI.DataLayer.SQLiteFolder
{
    public class WFCDatabase
    {
        SQLiteAsyncConnection Database;
        public WFCDatabase() 
        { 
        }    
        async Task Init()
        {
            if (Database is not null)
                return;

            Database = new SQLiteAsyncConnection(Constants.DatabasePath, Constants.Flags);
            
            var result = await Database.CreateTableAsync<CheckPoint>();

        }
    }
}
