Skip to content

Commit 377cc65

Browse files
committed
Merge pull request oysteinkrog#265 from Reza1024/master
Allowing SQLiteAPiWinRT to receive explicit address for temp folder. oysteinkrog#224 fixed
2 parents 8cd9e0e + d314c79 commit 377cc65

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/SQLite.Net.Platform.WinRT/SQLiteApiWinRT.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ namespace SQLite.Net.Platform.WinRT
99
{
1010
public class SQLiteApiWinRT : ISQLiteApiExt
1111
{
12-
public SQLiteApiWinRT()
12+
public SQLiteApiWinRT(string tempFolderPath = null)
1313
{
14-
SQLite3.SetDirectory(/*temp directory type*/2, Windows.Storage.ApplicationData.Current.TemporaryFolder.Path);
14+
SQLite3.SetDirectory(/*temp directory type*/2, tempFolderPath ?? Windows.Storage.ApplicationData.Current.TemporaryFolder.Path);
1515
}
1616

1717
public int BindBlob(IDbStatement stmt, int index, byte[] val, int n, IntPtr free)

src/SQLite.Net.Platform.WinRT/SQLitePlatformWinRT.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ namespace SQLite.Net.Platform.WinRT
55
{
66
public class SQLitePlatformWinRT : ISQLitePlatform
77
{
8-
public SQLitePlatformWinRT()
8+
public SQLitePlatformWinRT(string tempFolderPath = null)
99
{
10-
SQLiteApi = new SQLiteApiWinRT();
10+
SQLiteApi = new SQLiteApiWinRT(tempFolderPath);
1111
VolatileService = new VolatileServiceWinRT();
1212
StopwatchFactory = new StopwatchFactoryWinRT();
1313
ReflectionService = new ReflectionServiceWinRT();

0 commit comments

Comments
 (0)