Skip to content

Commit

Permalink
Remove key constructor
Browse files Browse the repository at this point in the history
This is to remove the number of overloads and
because just setting the key is not usually enough
for encrypted databases since you need to
configure the encryption.
  • Loading branch information
praeclarum committed Jan 25, 2019
1 parent 3753c10 commit 140fc2e
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/SQLite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,20 +258,6 @@ public SQLiteConnection (string databasePath, SQLiteOpenFlags openFlags, bool st
{
}

/// <summary>
/// Constructs a new SQLiteConnection and opens a SQLite database specified by databasePath.
/// </summary>
/// <param name="databasePath">
/// Specifies the path to the database file.
/// </param>
/// <param name="key">
/// Specifies the encryption key to use on the database. Should be a string or a byte[].
/// </param>
public SQLiteConnection (string databasePath, object key)
: this (new SQLiteConnectionString (databasePath, true, key: key))
{
}

/// <summary>
/// Constructs a new SQLiteConnection and opens a SQLite database specified by databasePath.
/// </summary>
Expand Down

0 comments on commit 140fc2e

Please sign in to comment.