mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-03-22 01:44:20 -05:00
27 lines
692 B
C#
27 lines
692 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Data;
|
|
using System.Data.SQLite;
|
|
|
|
namespace PkmnFoundations.Data
|
|
{
|
|
// todo
|
|
public class DataSqlite// : DataAbstract
|
|
{
|
|
public SQLiteConnection CreateConnection()
|
|
{
|
|
return CreateConnection(DefaultFilename);
|
|
}
|
|
|
|
public SQLiteConnection CreateConnection(String filename)
|
|
{
|
|
if (filename.Contains('\"')) throw new ArgumentException();
|
|
return new SQLiteConnection("Data Source=" + filename + ";Version=3;");
|
|
}
|
|
|
|
public String DefaultFilename = "pokedex.sqlite";
|
|
}
|
|
}
|