1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 06:42:56 +08:00
osu-lazer/osu.Game/Database/BeatmapDatabase.cs
2016-10-12 11:32:40 -04:00

22 lines
573 B
C#

using System;
using osu.Framework.OS;
using SQLite;
namespace osu.Game.Database
{
public class BeatmapDatabase
{
private static SQLiteConnection Connection { get; set; }
public BeatmapDatabase(BasicStorage storage)
{
if (Connection == null)
{
Connection = storage.GetDatabase(@"beatmaps");
Connection.CreateTable<BeatmapMetadata>();
Connection.CreateTable<BeatmapSet>();
Connection.CreateTable<Beatmap>();
}
}
}
}