Skip to content

Commit 7a428c2

Browse files
authored
0.9
1 parent b27eaff commit 7a428c2

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

Bases/MySQL.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ private MySqlConnection GetNewConn(bool open = true)
101101
public DbConnection GetConn()
102102
{ return dbConn; }
103103

104-
104+
public void Close()
105+
{
106+
dbConn.Close();
107+
}
105108
private void SetTransState(bool state)
106109
{
107110
if (state)

Bases/Postgre.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ private void SetTransState(bool state)
113113
public DbConnection GetConn()
114114
{ return dbConn; }
115115

116+
public void Close()
117+
{
118+
dbConn.Close();
119+
}
120+
116121
public bool Init()
117122
{
118123
return Common.Init(dbConn, "PostgreSQL");

Bases/SQLite.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ private void SetTransState(bool state)
108108
public DbConnection GetConn()
109109
{ return dbConn; }
110110

111+
public void Close()
112+
{
113+
dbConn.Close();
114+
}
111115
public bool Init()
112116
{
113117
SQLitePCL.Batteries.Init();

CAnyBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ public static IAnyBase Base(string name)
2121
}
2222

2323
public static int Version()
24-
{ return 8; }
24+
{ return 9; }
2525
}
2626
}

IAnyBase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ public interface IAnyBase
1414
public DbConnection GetConn();
1515

1616
public bool Init();
17+
public void Close();
1718
}

0 commit comments

Comments
 (0)