mirror of
https://github.com/osukey/osukey.git
synced 2025-05-01 03:37:17 +09: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>();
|
|
}
|
|
}
|
|
}
|
|
} |