mirror of
https://github.com/ppy/osu.git
synced 2025-02-08 13:52:58 +08:00
21 lines
530 B
C#
21 lines
530 B
C#
|
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>();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|