Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Data.SQLite;
- using System.IO;
- namespace AllRound
- {
- class discordbotDB
- {
- public SQLiteConnection myConnection;
- public discordbotDB()
- {
- myConnection = new SQLiteConnection("Data source=discordbot.sqlite");
- }
- public void OpenConnection()
- {
- if (myConnection.State == System.Data.ConnectionState.Closed)
- {
- myConnection.Open();
- }
- }
- public void CloseConnection()
- {
- if (myConnection.State == System.Data.ConnectionState.Open)
- {
- myConnection.Close();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement