1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-08 13:52:58 +08:00
osu-lazer/osu.Game/Database/BeatmapDatabase.cs

22 lines
566 B
C#
Raw Normal View History

2016-10-04 23:31:10 +08:00
using System;
using osu.Framework.OS;
2016-10-04 23:31:10 +08:00
using SQLite;
namespace osu.Game.Database
{
public class BeatmapDatabase
{
private static SQLiteConnection Connection { get; set; }
public BeatmapDatabase(BasicStorage storage)
2016-10-04 23:31:10 +08:00
{
if (Connection == null)
{
Connection = storage.GetDb("beatmaps");
2016-10-04 23:31:10 +08:00
Connection.CreateTable<BeatmapMetadata>();
Connection.CreateTable<BeatmapSet>();
Connection.CreateTable<Beatmap>();
}
}
}
}