mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 06:42:56 +08:00
22 lines
573 B
C#
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>();
|
|
}
|
|
}
|
|
}
|
|
} |