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

21 lines
530 B
C#
Raw Normal View History

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