mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-03-24 19:04:27 -05:00
26 lines
679 B
C#
26 lines
679 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Data;
|
|
using System.Data.SQLite;
|
|
|
|
namespace PkmnFoundations.Data
|
|
{
|
|
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";
|
|
}
|
|
}
|