Skip to content

Commit

Permalink
ISqliteConnection should derive from IDisposable, otherwise it can't …
Browse files Browse the repository at this point in the history
…be used with the "using" c# construct

(also: added ncrunch files to .gitignore)
  • Loading branch information
carlosirna committed Jun 21, 2023
1 parent e8a24a8 commit 47fdd34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -265,3 +265,6 @@ paket-files/
# CodeRush
.cr/

# NCrunch
*.ncrunchsolution
*.ncrunchproject
3 changes: 1 addition & 2 deletions src/SQLite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public enum CreateFlags
FullTextSearch4 = 0x200
}

public interface ISQLiteConnection
public interface ISQLiteConnection : IDisposable
{
Sqlite3DatabaseHandle Handle { get; }
string DatabasePath { get; }
Expand Down Expand Up @@ -215,7 +215,6 @@ CreateTablesResult CreateTables<T, T2, T3, T4, T5> (CreateFlags createFlags = Cr
int Delete (object primaryKey, TableMapping map);
int DeleteAll<T> ();
int DeleteAll (TableMapping map);
void Dispose ();
int DropTable<T> ();
int DropTable (TableMapping map);
void EnableLoadExtension (bool enabled);
Expand Down

0 comments on commit 47fdd34

Please sign in to comment.