Skip to content

Commit 34b3233

Browse files
committed
Revert "progress on sqlite3_snapshot #333 #340", for now. this will require rebuilds of all the native libs.
This reverts commit 7919cb4.
1 parent 7919cb4 commit 34b3233

File tree

17 files changed

+3
-725
lines changed

17 files changed

+3
-725
lines changed

Directory.Build.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<Copyright>Copyright 2014-2020 SourceGear, LLC</Copyright>
55
<Company>SourceGear</Company>
66
<Authors>Eric Sink</Authors>
7-
<Version>2.0.3-pre20200421095835</Version>
8-
<AssemblyVersion>2.0.3.841</AssemblyVersion>
9-
<FileVersion>2.0.3.841</FileVersion>
7+
<Version>2.0.3-pre20200408101627</Version>
8+
<AssemblyVersion>2.0.3.828</AssemblyVersion>
9+
<FileVersion>2.0.3.828</FileVersion>
1010
<Description>SQLitePCLRaw is a Portable Class Library (PCL) for low-level (raw) access to SQLite</Description>
1111
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
1212
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>

src/SQLitePCLRaw.core/handles.cs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -148,29 +148,6 @@ public int manual_close()
148148
}
149149
}
150150

151-
public class sqlite3_snapshot : SafeHandle
152-
{
153-
sqlite3_snapshot() : base(IntPtr.Zero, true)
154-
{
155-
}
156-
157-
public override bool IsInvalid => handle == IntPtr.Zero;
158-
159-
protected override bool ReleaseHandle()
160-
{
161-
raw.internal_sqlite3_snapshot_free(handle);
162-
return true;
163-
}
164-
165-
public void manual_close()
166-
{
167-
raw.internal_sqlite3_snapshot_free(handle);
168-
// TODO review. should handle always be nulled here?
169-
// TODO maybe called SetHandleAsInvalid instead?
170-
handle = IntPtr.Zero;
171-
}
172-
}
173-
174151
public class sqlite3_stmt : SafeHandle
175152
{
176153
private sqlite3 _db;

src/SQLitePCLRaw.core/isqlite3.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,6 @@ public interface ISQLite3Provider
156156
int sqlite3_column_type(sqlite3_stmt stmt, int index);
157157
utf8z sqlite3_column_decltype(sqlite3_stmt stmt, int index);
158158

159-
int sqlite3_snapshot_get(sqlite3 db, utf8z schema, out sqlite3_snapshot snap);
160-
int sqlite3_snapshot_cmp(sqlite3_snapshot p1, sqlite3_snapshot p2);
161-
int sqlite3_snapshot_open(sqlite3 db, utf8z schema, sqlite3_snapshot snap);
162-
int sqlite3_snapshot_recover(sqlite3 db, utf8z name);
163-
void sqlite3_snapshot_free(IntPtr snap);
164-
165159
sqlite3_backup sqlite3_backup_init(sqlite3 destDb, utf8z destName, sqlite3 sourceDb, utf8z sourceName);
166160
int sqlite3_backup_step(sqlite3_backup backup, int nPage);
167161
int sqlite3_backup_remaining(sqlite3_backup backup);

src/SQLitePCLRaw.core/raw.cs

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,37 +1243,6 @@ static internal int internal_sqlite3_backup_finish(IntPtr p)
12431243
return Provider.sqlite3_backup_finish(p);
12441244
}
12451245

1246-
static public int sqlite3_snapshot_get(sqlite3 db, string schema, out sqlite3_snapshot snap)
1247-
{
1248-
return Provider.sqlite3_snapshot_get(db, schema.to_utf8z(), out snap);
1249-
}
1250-
1251-
static public int sqlite3_snapshot_cmp(sqlite3_snapshot p1, sqlite3_snapshot p2)
1252-
{
1253-
return Provider.sqlite3_snapshot_cmp(p1, p2);
1254-
}
1255-
1256-
static public int sqlite3_snapshot_open(sqlite3 db, string schema, sqlite3_snapshot snap)
1257-
{
1258-
return Provider.sqlite3_snapshot_open(db, schema.to_utf8z(), snap);
1259-
}
1260-
1261-
static public int sqlite3_snapshot_recover(sqlite3 db, string name)
1262-
{
1263-
return Provider.sqlite3_snapshot_recover(db, name.to_utf8z());
1264-
}
1265-
1266-
static public void sqlite3_snapshot_free(sqlite3_snapshot snap)
1267-
{
1268-
snap.manual_close();
1269-
}
1270-
1271-
// this is called by the SafeHandle
1272-
static internal void internal_sqlite3_snapshot_free(IntPtr p)
1273-
{
1274-
Provider.sqlite3_snapshot_free(p);
1275-
}
1276-
12771246
static public int sqlite3_blob_open(sqlite3 db, utf8z db_utf8, utf8z table_utf8, utf8z col_utf8, long rowid, int flags, out sqlite3_blob blob)
12781247
{
12791248
return Provider.sqlite3_blob_open(db, db_utf8, table_utf8, col_utf8, rowid, flags, out blob);

src/SQLitePCLRaw.provider.dynamic_cdecl/Generated/provider_dynamic_cdecl.cs

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -372,40 +372,6 @@ int ISQLite3Provider.sqlite3_blob_close(IntPtr blob)
372372
return NativeMethods.sqlite3_blob_close(blob);
373373
}
374374

375-
unsafe int ISQLite3Provider.sqlite3_snapshot_get(sqlite3 db, utf8z schema, out sqlite3_snapshot snap)
376-
{
377-
fixed (byte* p_schema = schema)
378-
{
379-
return NativeMethods.sqlite3_snapshot_get(db, p_schema, out snap);
380-
}
381-
}
382-
383-
int ISQLite3Provider.sqlite3_snapshot_cmp(sqlite3_snapshot p1, sqlite3_snapshot p2)
384-
{
385-
return NativeMethods.sqlite3_snapshot_cmp(p1, p2);
386-
}
387-
388-
unsafe int ISQLite3Provider.sqlite3_snapshot_open(sqlite3 db, utf8z schema, sqlite3_snapshot snap)
389-
{
390-
fixed (byte* p_schema = schema)
391-
{
392-
return NativeMethods.sqlite3_snapshot_open(db, p_schema, snap);
393-
}
394-
}
395-
396-
unsafe int ISQLite3Provider.sqlite3_snapshot_recover(sqlite3 db, utf8z name)
397-
{
398-
fixed (byte* p_name = name)
399-
{
400-
return NativeMethods.sqlite3_snapshot_recover(db, p_name);
401-
}
402-
}
403-
404-
void ISQLite3Provider.sqlite3_snapshot_free(IntPtr snap)
405-
{
406-
NativeMethods.sqlite3_snapshot_free(snap);
407-
}
408-
409375
unsafe sqlite3_backup ISQLite3Provider.sqlite3_backup_init(sqlite3 destDb, utf8z destName, sqlite3 sourceDb, utf8z sourceName)
410376
{
411377
fixed (byte* p_destName = destName, p_sourceName = sourceName)
@@ -1575,11 +1541,6 @@ static public void Setup(IGetFunctionPointer gf)
15751541
sqlite3_backup_remaining = (MyDelegateTypes.sqlite3_backup_remaining) Load(gf, typeof(MyDelegateTypes.sqlite3_backup_remaining));
15761542
sqlite3_backup_pagecount = (MyDelegateTypes.sqlite3_backup_pagecount) Load(gf, typeof(MyDelegateTypes.sqlite3_backup_pagecount));
15771543
sqlite3_backup_finish = (MyDelegateTypes.sqlite3_backup_finish) Load(gf, typeof(MyDelegateTypes.sqlite3_backup_finish));
1578-
sqlite3_snapshot_get = (MyDelegateTypes.sqlite3_snapshot_get) Load(gf, typeof(MyDelegateTypes.sqlite3_snapshot_get));
1579-
sqlite3_snapshot_cmp = (MyDelegateTypes.sqlite3_snapshot_cmp) Load(gf, typeof(MyDelegateTypes.sqlite3_snapshot_cmp));
1580-
sqlite3_snapshot_open = (MyDelegateTypes.sqlite3_snapshot_open) Load(gf, typeof(MyDelegateTypes.sqlite3_snapshot_open));
1581-
sqlite3_snapshot_recover = (MyDelegateTypes.sqlite3_snapshot_recover) Load(gf, typeof(MyDelegateTypes.sqlite3_snapshot_recover));
1582-
sqlite3_snapshot_free = (MyDelegateTypes.sqlite3_snapshot_free) Load(gf, typeof(MyDelegateTypes.sqlite3_snapshot_free));
15831544
sqlite3_blob_open = (MyDelegateTypes.sqlite3_blob_open) Load(gf, typeof(MyDelegateTypes.sqlite3_blob_open));
15841545
sqlite3_blob_write = (MyDelegateTypes.sqlite3_blob_write) Load(gf, typeof(MyDelegateTypes.sqlite3_blob_write));
15851546
sqlite3_blob_read = (MyDelegateTypes.sqlite3_blob_read) Load(gf, typeof(MyDelegateTypes.sqlite3_blob_read));
@@ -1714,11 +1675,6 @@ static public void Setup(IGetFunctionPointer gf)
17141675
public static MyDelegateTypes.sqlite3_backup_remaining sqlite3_backup_remaining;
17151676
public static MyDelegateTypes.sqlite3_backup_pagecount sqlite3_backup_pagecount;
17161677
public static MyDelegateTypes.sqlite3_backup_finish sqlite3_backup_finish;
1717-
public static MyDelegateTypes.sqlite3_snapshot_get sqlite3_snapshot_get;
1718-
public static MyDelegateTypes.sqlite3_snapshot_cmp sqlite3_snapshot_cmp;
1719-
public static MyDelegateTypes.sqlite3_snapshot_open sqlite3_snapshot_open;
1720-
public static MyDelegateTypes.sqlite3_snapshot_recover sqlite3_snapshot_recover;
1721-
public static MyDelegateTypes.sqlite3_snapshot_free sqlite3_snapshot_free;
17221678
public static MyDelegateTypes.sqlite3_blob_open sqlite3_blob_open;
17231679
public static MyDelegateTypes.sqlite3_blob_write sqlite3_blob_write;
17241680
public static MyDelegateTypes.sqlite3_blob_read sqlite3_blob_read;
@@ -2166,21 +2122,6 @@ public unsafe delegate int sqlite3_load_extension(
21662122
[UnmanagedFunctionPointer(CALLING_CONVENTION)]
21672123
public unsafe delegate int sqlite3_blob_close(IntPtr blob);
21682124

2169-
[UnmanagedFunctionPointer(CALLING_CONVENTION)]
2170-
public unsafe delegate int sqlite3_snapshot_get(sqlite3 db, byte* schema, out sqlite3_snapshot snap);
2171-
2172-
[UnmanagedFunctionPointer(CALLING_CONVENTION)]
2173-
public unsafe delegate int sqlite3_snapshot_cmp(sqlite3_snapshot p1, sqlite3_snapshot p2);
2174-
2175-
[UnmanagedFunctionPointer(CALLING_CONVENTION)]
2176-
public unsafe delegate int sqlite3_snapshot_open(sqlite3 db, byte* schema, sqlite3_snapshot snap);
2177-
2178-
[UnmanagedFunctionPointer(CALLING_CONVENTION)]
2179-
public unsafe delegate int sqlite3_snapshot_recover(sqlite3 db, byte* name);
2180-
2181-
[UnmanagedFunctionPointer(CALLING_CONVENTION)]
2182-
public unsafe delegate void sqlite3_snapshot_free(IntPtr snap);
2183-
21842125
[UnmanagedFunctionPointer(CALLING_CONVENTION)]
21852126
public unsafe delegate int sqlite3_wal_autocheckpoint(sqlite3 db, int n);
21862127

src/SQLitePCLRaw.provider.dynamic_stdcall/Generated/provider_dynamic_stdcall.cs

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -372,40 +372,6 @@ int ISQLite3Provider.sqlite3_blob_close(IntPtr blob)
372372
return NativeMethods.sqlite3_blob_close(blob);
373373
}
374374

375-
unsafe int ISQLite3Provider.sqlite3_snapshot_get(sqlite3 db, utf8z schema, out sqlite3_snapshot snap)
376-
{
377-
fixed (byte* p_schema = schema)
378-
{
379-
return NativeMethods.sqlite3_snapshot_get(db, p_schema, out snap);
380-
}
381-
}
382-
383-
int ISQLite3Provider.sqlite3_snapshot_cmp(sqlite3_snapshot p1, sqlite3_snapshot p2)
384-
{
385-
return NativeMethods.sqlite3_snapshot_cmp(p1, p2);
386-
}
387-
388-
unsafe int ISQLite3Provider.sqlite3_snapshot_open(sqlite3 db, utf8z schema, sqlite3_snapshot snap)
389-
{
390-
fixed (byte* p_schema = schema)
391-
{
392-
return NativeMethods.sqlite3_snapshot_open(db, p_schema, snap);
393-
}
394-
}
395-
396-
unsafe int ISQLite3Provider.sqlite3_snapshot_recover(sqlite3 db, utf8z name)
397-
{
398-
fixed (byte* p_name = name)
399-
{
400-
return NativeMethods.sqlite3_snapshot_recover(db, p_name);
401-
}
402-
}
403-
404-
void ISQLite3Provider.sqlite3_snapshot_free(IntPtr snap)
405-
{
406-
NativeMethods.sqlite3_snapshot_free(snap);
407-
}
408-
409375
unsafe sqlite3_backup ISQLite3Provider.sqlite3_backup_init(sqlite3 destDb, utf8z destName, sqlite3 sourceDb, utf8z sourceName)
410376
{
411377
fixed (byte* p_destName = destName, p_sourceName = sourceName)
@@ -1575,11 +1541,6 @@ static public void Setup(IGetFunctionPointer gf)
15751541
sqlite3_backup_remaining = (MyDelegateTypes.sqlite3_backup_remaining) Load(gf, typeof(MyDelegateTypes.sqlite3_backup_remaining));
15761542
sqlite3_backup_pagecount = (MyDelegateTypes.sqlite3_backup_pagecount) Load(gf, typeof(MyDelegateTypes.sqlite3_backup_pagecount));
15771543
sqlite3_backup_finish = (MyDelegateTypes.sqlite3_backup_finish) Load(gf, typeof(MyDelegateTypes.sqlite3_backup_finish));
1578-
sqlite3_snapshot_get = (MyDelegateTypes.sqlite3_snapshot_get) Load(gf, typeof(MyDelegateTypes.sqlite3_snapshot_get));
1579-
sqlite3_snapshot_cmp = (MyDelegateTypes.sqlite3_snapshot_cmp) Load(gf, typeof(MyDelegateTypes.sqlite3_snapshot_cmp));
1580-
sqlite3_snapshot_open = (MyDelegateTypes.sqlite3_snapshot_open) Load(gf, typeof(MyDelegateTypes.sqlite3_snapshot_open));
1581-
sqlite3_snapshot_recover = (MyDelegateTypes.sqlite3_snapshot_recover) Load(gf, typeof(MyDelegateTypes.sqlite3_snapshot_recover));
1582-
sqlite3_snapshot_free = (MyDelegateTypes.sqlite3_snapshot_free) Load(gf, typeof(MyDelegateTypes.sqlite3_snapshot_free));
15831544
sqlite3_blob_open = (MyDelegateTypes.sqlite3_blob_open) Load(gf, typeof(MyDelegateTypes.sqlite3_blob_open));
15841545
sqlite3_blob_write = (MyDelegateTypes.sqlite3_blob_write) Load(gf, typeof(MyDelegateTypes.sqlite3_blob_write));
15851546
sqlite3_blob_read = (MyDelegateTypes.sqlite3_blob_read) Load(gf, typeof(MyDelegateTypes.sqlite3_blob_read));
@@ -1714,11 +1675,6 @@ static public void Setup(IGetFunctionPointer gf)
17141675
public static MyDelegateTypes.sqlite3_backup_remaining sqlite3_backup_remaining;
17151676
public static MyDelegateTypes.sqlite3_backup_pagecount sqlite3_backup_pagecount;
17161677
public static MyDelegateTypes.sqlite3_backup_finish sqlite3_backup_finish;
1717-
public static MyDelegateTypes.sqlite3_snapshot_get sqlite3_snapshot_get;
1718-
public static MyDelegateTypes.sqlite3_snapshot_cmp sqlite3_snapshot_cmp;
1719-
public static MyDelegateTypes.sqlite3_snapshot_open sqlite3_snapshot_open;
1720-
public static MyDelegateTypes.sqlite3_snapshot_recover sqlite3_snapshot_recover;
1721-
public static MyDelegateTypes.sqlite3_snapshot_free sqlite3_snapshot_free;
17221678
public static MyDelegateTypes.sqlite3_blob_open sqlite3_blob_open;
17231679
public static MyDelegateTypes.sqlite3_blob_write sqlite3_blob_write;
17241680
public static MyDelegateTypes.sqlite3_blob_read sqlite3_blob_read;
@@ -2166,21 +2122,6 @@ public unsafe delegate int sqlite3_load_extension(
21662122
[UnmanagedFunctionPointer(CALLING_CONVENTION)]
21672123
public unsafe delegate int sqlite3_blob_close(IntPtr blob);
21682124

2169-
[UnmanagedFunctionPointer(CALLING_CONVENTION)]
2170-
public unsafe delegate int sqlite3_snapshot_get(sqlite3 db, byte* schema, out sqlite3_snapshot snap);
2171-
2172-
[UnmanagedFunctionPointer(CALLING_CONVENTION)]
2173-
public unsafe delegate int sqlite3_snapshot_cmp(sqlite3_snapshot p1, sqlite3_snapshot p2);
2174-
2175-
[UnmanagedFunctionPointer(CALLING_CONVENTION)]
2176-
public unsafe delegate int sqlite3_snapshot_open(sqlite3 db, byte* schema, sqlite3_snapshot snap);
2177-
2178-
[UnmanagedFunctionPointer(CALLING_CONVENTION)]
2179-
public unsafe delegate int sqlite3_snapshot_recover(sqlite3 db, byte* name);
2180-
2181-
[UnmanagedFunctionPointer(CALLING_CONVENTION)]
2182-
public unsafe delegate void sqlite3_snapshot_free(IntPtr snap);
2183-
21842125
[UnmanagedFunctionPointer(CALLING_CONVENTION)]
21852126
public unsafe delegate int sqlite3_wal_autocheckpoint(sqlite3 db, int n);
21862127

src/SQLitePCLRaw.provider.e_sqlcipher.most/Generated/provider_e_sqlcipher.cs

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -363,40 +363,6 @@ int ISQLite3Provider.sqlite3_blob_close(IntPtr blob)
363363
return NativeMethods.sqlite3_blob_close(blob);
364364
}
365365

366-
unsafe int ISQLite3Provider.sqlite3_snapshot_get(sqlite3 db, utf8z schema, out sqlite3_snapshot snap)
367-
{
368-
fixed (byte* p_schema = schema)
369-
{
370-
return NativeMethods.sqlite3_snapshot_get(db, p_schema, out snap);
371-
}
372-
}
373-
374-
int ISQLite3Provider.sqlite3_snapshot_cmp(sqlite3_snapshot p1, sqlite3_snapshot p2)
375-
{
376-
return NativeMethods.sqlite3_snapshot_cmp(p1, p2);
377-
}
378-
379-
unsafe int ISQLite3Provider.sqlite3_snapshot_open(sqlite3 db, utf8z schema, sqlite3_snapshot snap)
380-
{
381-
fixed (byte* p_schema = schema)
382-
{
383-
return NativeMethods.sqlite3_snapshot_open(db, p_schema, snap);
384-
}
385-
}
386-
387-
unsafe int ISQLite3Provider.sqlite3_snapshot_recover(sqlite3 db, utf8z name)
388-
{
389-
fixed (byte* p_name = name)
390-
{
391-
return NativeMethods.sqlite3_snapshot_recover(db, p_name);
392-
}
393-
}
394-
395-
void ISQLite3Provider.sqlite3_snapshot_free(IntPtr snap)
396-
{
397-
NativeMethods.sqlite3_snapshot_free(snap);
398-
}
399-
400366
unsafe sqlite3_backup ISQLite3Provider.sqlite3_backup_init(sqlite3 destDb, utf8z destName, sqlite3 sourceDb, utf8z sourceName)
401367
{
402368
fixed (byte* p_destName = destName, p_sourceName = sourceName)
@@ -1805,21 +1771,6 @@ public static extern unsafe int sqlite3_load_extension(
18051771
[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
18061772
public static extern unsafe int sqlite3_blob_close(IntPtr blob);
18071773

1808-
[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
1809-
public static extern unsafe int sqlite3_snapshot_get(sqlite3 db, byte* schema, out sqlite3_snapshot snap);
1810-
1811-
[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
1812-
public static extern unsafe int sqlite3_snapshot_cmp(sqlite3_snapshot p1, sqlite3_snapshot p2);
1813-
1814-
[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
1815-
public static extern unsafe int sqlite3_snapshot_open(sqlite3 db, byte* schema, sqlite3_snapshot snap);
1816-
1817-
[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
1818-
public static extern unsafe int sqlite3_snapshot_recover(sqlite3 db, byte* name);
1819-
1820-
[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
1821-
public static extern unsafe void sqlite3_snapshot_free(IntPtr snap);
1822-
18231774
[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
18241775
public static extern unsafe int sqlite3_wal_autocheckpoint(sqlite3 db, int n);
18251776

src/SQLitePCLRaw.provider.e_sqlcipher.uwp/Generated/provider_e_sqlcipher.cs

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -366,40 +366,6 @@ int ISQLite3Provider.sqlite3_blob_close(IntPtr blob)
366366
return NativeMethods.sqlite3_blob_close(blob);
367367
}
368368

369-
unsafe int ISQLite3Provider.sqlite3_snapshot_get(sqlite3 db, utf8z schema, out sqlite3_snapshot snap)
370-
{
371-
fixed (byte* p_schema = schema)
372-
{
373-
return NativeMethods.sqlite3_snapshot_get(db, p_schema, out snap);
374-
}
375-
}
376-
377-
int ISQLite3Provider.sqlite3_snapshot_cmp(sqlite3_snapshot p1, sqlite3_snapshot p2)
378-
{
379-
return NativeMethods.sqlite3_snapshot_cmp(p1, p2);
380-
}
381-
382-
unsafe int ISQLite3Provider.sqlite3_snapshot_open(sqlite3 db, utf8z schema, sqlite3_snapshot snap)
383-
{
384-
fixed (byte* p_schema = schema)
385-
{
386-
return NativeMethods.sqlite3_snapshot_open(db, p_schema, snap);
387-
}
388-
}
389-
390-
unsafe int ISQLite3Provider.sqlite3_snapshot_recover(sqlite3 db, utf8z name)
391-
{
392-
fixed (byte* p_name = name)
393-
{
394-
return NativeMethods.sqlite3_snapshot_recover(db, p_name);
395-
}
396-
}
397-
398-
void ISQLite3Provider.sqlite3_snapshot_free(IntPtr snap)
399-
{
400-
NativeMethods.sqlite3_snapshot_free(snap);
401-
}
402-
403369
unsafe sqlite3_backup ISQLite3Provider.sqlite3_backup_init(sqlite3 destDb, utf8z destName, sqlite3 sourceDb, utf8z sourceName)
404370
{
405371
fixed (byte* p_destName = destName, p_sourceName = sourceName)
@@ -1808,21 +1774,6 @@ public static extern unsafe int sqlite3_load_extension(
18081774
[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
18091775
public static extern unsafe int sqlite3_blob_close(IntPtr blob);
18101776

1811-
[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
1812-
public static extern unsafe int sqlite3_snapshot_get(sqlite3 db, byte* schema, out sqlite3_snapshot snap);
1813-
1814-
[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
1815-
public static extern unsafe int sqlite3_snapshot_cmp(sqlite3_snapshot p1, sqlite3_snapshot p2);
1816-
1817-
[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
1818-
public static extern unsafe int sqlite3_snapshot_open(sqlite3 db, byte* schema, sqlite3_snapshot snap);
1819-
1820-
[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
1821-
public static extern unsafe int sqlite3_snapshot_recover(sqlite3 db, byte* name);
1822-
1823-
[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
1824-
public static extern unsafe void sqlite3_snapshot_free(IntPtr snap);
1825-
18261777
[DllImport(SQLITE_DLL, ExactSpelling=true, CallingConvention = CALLING_CONVENTION)]
18271778
public static extern unsafe int sqlite3_wal_autocheckpoint(sqlite3 db, int n);
18281779

0 commit comments

Comments
 (0)