forked from andpor/react-native-sqlite-storage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The UWP implementation is very similar to the iOS implementation. There are some differences. Most of them are because I didn't have time to port certain features and I haven't needed them. Here's the list of differences: - Reading and writing blobs isn't supported. - I didn't port the sqlcipher stuff. - I didn't port the custom regex SQL function so REGEXP may not be supported. - `attach` isn't supported. - Some `open` options aren't supported: - dblocation. I wasn't sure how to map it to UWP. Also, the Android implementations don't seem to support this. - key (related to sqlcipher) - Differences with `delete`: - The dblocation option isn't supported - Closes the DB if it's open. This felt like the right thing to do. All of the code in the SQLite.Net-PCL directory is from https://github.com/oysteinkrog/SQLite.Net-PCL. It provides a thin wrapper around the C SQLite APIs which enables them to be called from C#. A couple of tweaks were made to the code to fix these bugs: - oysteinkrog/SQLite.Net-PCL#374 - oysteinkrog/SQLite.Net-PCL#375 This implementation requires at least the Windows 10 Anniversary Update. This is because it relies on the version of SQLite that is built into Windows 10 and this was introduced in the Anniversary Update. You can learn more at https://blogs.windows.com/buildingapps/2017/02/06/using-sqlite-databases-uwp-apps/. With a little work, this module could be updated to support earlier versions of Windows 10. Here's how: - When constructing `SQLiteApiWinRT`, pass `false` for the `useWinSqlite` parameter. - Install the "SQLite for Universal Windows Platform" extension which will bring a version of SQLite into your app: https://marketplace.visualstudio.com/items?itemName=SQLiteDevelopmentTeam.SQLiteforUniversalWindowsPlatform TODO: - backgroundExecuteSqlBatch - executeSql - backgroundExecuteSql
- Loading branch information
Adam Comella
committed
Jun 24, 2018
1 parent
8c935c4
commit 09dffd6
Showing
20 changed files
with
2,592 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
*AppPackages* | ||
*BundleArtifacts* | ||
*ReactAssets* | ||
|
||
#OS junk files | ||
[Tt]humbs.db | ||
*.DS_Store | ||
|
||
#Visual Studio files | ||
*.[Oo]bj | ||
*.user | ||
*.aps | ||
*.pch | ||
*.vspscc | ||
*.vssscc | ||
*_i.c | ||
*_p.c | ||
*.ncb | ||
*.suo | ||
*.tlb | ||
*.tlh | ||
*.bak | ||
*.[Cc]ache | ||
*.ilk | ||
*.log | ||
*.lib | ||
*.sbr | ||
*.sdf | ||
*.opensdf | ||
*.opendb | ||
*.unsuccessfulbuild | ||
ipch/ | ||
[Oo]bj/ | ||
[Bb]in | ||
[Dd]ebug*/ | ||
[Rr]elease*/ | ||
Ankh.NoLoad | ||
|
||
#MonoDevelop | ||
*.pidb | ||
*.userprefs | ||
|
||
#Tooling | ||
_ReSharper*/ | ||
*.resharper | ||
[Tt]est[Rr]esult* | ||
*.sass-cache | ||
|
||
#Project files | ||
[Bb]uild/ | ||
|
||
#Subversion files | ||
.svn | ||
|
||
# Office Temp Files | ||
~$* | ||
|
||
# vim Temp Files | ||
*~ | ||
|
||
#NuGet | ||
packages/ | ||
*.nupkg | ||
|
||
#ncrunch | ||
*ncrunch* | ||
*crunch*.local.xml | ||
|
||
# visual studio database projects | ||
*.dbmdl | ||
|
||
#Test files | ||
*.testsettings | ||
|
||
#Other files | ||
*.DotSettings | ||
.vs/ | ||
*project.lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 14 | ||
VisualStudioVersion = 14.0.25123.0 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SQLitePlugin", "SQLitePlugin\SQLitePlugin.csproj", "{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactNative", "..\node_modules\react-native-windows\ReactWindows\ReactNative\ReactNative.csproj", "{C7673AD5-E3AA-468C-A5FD-FA38154E205C}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Debug|ARM = Debug|ARM | ||
Debug|x64 = Debug|x64 | ||
Debug|x86 = Debug|x86 | ||
Development|Any CPU = Development|Any CPU | ||
Development|ARM = Development|ARM | ||
Development|x64 = Development|x64 | ||
Development|x86 = Development|x86 | ||
Release|Any CPU = Release|Any CPU | ||
Release|ARM = Release|ARM | ||
Release|x64 = Release|x64 | ||
Release|x86 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Debug|ARM.ActiveCfg = Debug|ARM | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Debug|ARM.Build.0 = Debug|ARM | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Debug|x64.ActiveCfg = Debug|x64 | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Debug|x64.Build.0 = Debug|x64 | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Debug|x86.ActiveCfg = Debug|x86 | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Debug|x86.Build.0 = Debug|x86 | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Development|Any CPU.ActiveCfg = Development|Any CPU | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Development|Any CPU.Build.0 = Development|Any CPU | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Development|ARM.ActiveCfg = Development|ARM | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Development|ARM.Build.0 = Development|ARM | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Development|x64.ActiveCfg = Development|x64 | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Development|x64.Build.0 = Development|x64 | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Development|x86.ActiveCfg = Development|x86 | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Development|x86.Build.0 = Development|x86 | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Release|ARM.ActiveCfg = Release|ARM | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Release|ARM.Build.0 = Release|ARM | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Release|x64.ActiveCfg = Release|x64 | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Release|x64.Build.0 = Release|x64 | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Release|x86.ActiveCfg = Release|x86 | ||
{6A1F04D0-8750-11E6-AADE-EB9EAC8D95CF}.Release|x86.Build.0 = Release|x86 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|ARM.ActiveCfg = Debug|ARM | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|ARM.Build.0 = Debug|ARM | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x64.ActiveCfg = Debug|x64 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x64.Build.0 = Debug|x64 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x86.ActiveCfg = Debug|x86 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x86.Build.0 = Debug|x86 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|Any CPU.ActiveCfg = Debug|Any CPU | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|Any CPU.Build.0 = Debug|Any CPU | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|ARM.ActiveCfg = Debug|ARM | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|ARM.Build.0 = Debug|ARM | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x64.ActiveCfg = Debug|x64 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x64.Build.0 = Debug|x64 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x86.ActiveCfg = Debug|x86 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x86.Build.0 = Debug|x86 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|ARM.ActiveCfg = Release|ARM | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|ARM.Build.0 = Release|ARM | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x64.ActiveCfg = Release|x64 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x64.Build.0 = Release|x64 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x86.ActiveCfg = Release|x86 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x86.Build.0 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.InteropServices; | ||
|
||
// General Information about an assembly is controlled through the following | ||
// set of attributes. Change these attribute values to modify the information | ||
// associated with an assembly. | ||
[assembly: AssemblyTitle("SQLitePlugin")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("SQLitePlugin")] | ||
[assembly: AssemblyCopyright("Copyright © 2016")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// Version information for an assembly consists of the following four values: | ||
// | ||
// Major Version | ||
// Minor Version | ||
// Build Number | ||
// Revision | ||
// | ||
// You can specify all the values or you can default the Build and Revision Numbers | ||
// by using the '*' as shown below: | ||
// [assembly: AssemblyVersion("1.0.*")] | ||
[assembly: AssemblyVersion("1.0.0.0")] | ||
[assembly: AssemblyFileVersion("1.0.0.0")] | ||
[assembly: ComVisible(false)] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
This file contains Runtime Directives, specifications about types your application accesses | ||
through reflection and other dynamic code patterns. Runtime Directives are used to control the | ||
.NET Native optimizer and ensure that it does not remove code accessed by your library. If your | ||
library does not do any reflection, then you generally do not need to edit this file. However, | ||
if your library reflects over types, especially types passed to it or derived from its types, | ||
then you should write Runtime Directives. | ||
The most common use of reflection in libraries is to discover information about types passed | ||
to the library. Runtime Directives have three ways to express requirements on types passed to | ||
your library. | ||
1. Parameter, GenericParameter, TypeParameter, TypeEnumerableParameter | ||
Use these directives to reflect over types passed as a parameter. | ||
2. SubTypes | ||
Use a SubTypes directive to reflect over types derived from another type. | ||
3. AttributeImplies | ||
Use an AttributeImplies directive to indicate that your library needs to reflect over | ||
types or methods decorated with an attribute. | ||
For more information on writing Runtime Directives for libraries, please visit | ||
http://go.microsoft.com/fwlink/?LinkID=391919 | ||
--> | ||
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata"> | ||
<Library Name="SQLitePlugin"> | ||
|
||
<!-- add directives for your library here --> | ||
|
||
</Library> | ||
</Directives> |
36 changes: 36 additions & 0 deletions
36
src/windows/SQLitePlugin/SQLite.Net-PCL/SQLite.NET/Interop/ColType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// Copyright (c) 2012 Krueger Systems, Inc. | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the "Software"), to deal | ||
// in the Software without restriction, including without limitation the rights | ||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
// copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in | ||
// all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
// THE SOFTWARE. | ||
// | ||
|
||
using JetBrains.Annotations; | ||
|
||
namespace SQLite.Net.Interop | ||
{ | ||
[PublicAPI] | ||
public enum ColType | ||
{ | ||
Integer = 1, | ||
Float = 2, | ||
Text = 3, | ||
Blob = 4, | ||
Null = 5 | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
src/windows/SQLitePlugin/SQLite.Net-PCL/SQLite.NET/Interop/ConfigOption.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// Copyright (c) 2012 Krueger Systems, Inc. | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the "Software"), to deal | ||
// in the Software without restriction, including without limitation the rights | ||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
// copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in | ||
// all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
// THE SOFTWARE. | ||
// | ||
|
||
using JetBrains.Annotations; | ||
|
||
namespace SQLite.Net.Interop | ||
{ | ||
[PublicAPI] | ||
public enum ConfigOption | ||
{ | ||
SingleThread = 1, | ||
MultiThread = 2, | ||
Serialized = 3 | ||
} | ||
} |
78 changes: 78 additions & 0 deletions
78
src/windows/SQLitePlugin/SQLite.Net-PCL/SQLite.NET/Interop/ExtendedResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
// | ||
// Copyright (c) 2012 Krueger Systems, Inc. | ||
// Copyright (c) 2013 Øystein Krog ([email protected]) | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the "Software"), to deal | ||
// in the Software without restriction, including without limitation the rights | ||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
// copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in | ||
// all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
// THE SOFTWARE. | ||
|
||
using System.Diagnostics.CodeAnalysis; | ||
using JetBrains.Annotations; | ||
|
||
namespace SQLite.Net.Interop | ||
{ | ||
[PublicAPI] | ||
[SuppressMessage("ReSharper", "InconsistentNaming")] | ||
public enum ExtendedResult | ||
{ | ||
IOErrorRead = (Result.IOError | (1 << 8)), | ||
IOErrorShortRead = (Result.IOError | (2 << 8)), | ||
IOErrorWrite = (Result.IOError | (3 << 8)), | ||
IOErrorFsync = (Result.IOError | (4 << 8)), | ||
IOErrorDirFSync = (Result.IOError | (5 << 8)), | ||
IOErrorTruncate = (Result.IOError | (6 << 8)), | ||
IOErrorFStat = (Result.IOError | (7 << 8)), | ||
IOErrorUnlock = (Result.IOError | (8 << 8)), | ||
IOErrorRdlock = (Result.IOError | (9 << 8)), | ||
IOErrorDelete = (Result.IOError | (10 << 8)), | ||
IOErrorBlocked = (Result.IOError | (11 << 8)), | ||
IOErrorNoMem = (Result.IOError | (12 << 8)), | ||
IOErrorAccess = (Result.IOError | (13 << 8)), | ||
IOErrorCheckReservedLock = (Result.IOError | (14 << 8)), | ||
IOErrorLock = (Result.IOError | (15 << 8)), | ||
IOErrorClose = (Result.IOError | (16 << 8)), | ||
IOErrorDirClose = (Result.IOError | (17 << 8)), | ||
IOErrorSHMOpen = (Result.IOError | (18 << 8)), | ||
IOErrorSHMSize = (Result.IOError | (19 << 8)), | ||
IOErrorSHMLock = (Result.IOError | (20 << 8)), | ||
IOErrorSHMMap = (Result.IOError | (21 << 8)), | ||
IOErrorSeek = (Result.IOError | (22 << 8)), | ||
IOErrorDeleteNoEnt = (Result.IOError | (23 << 8)), | ||
IOErrorMMap = (Result.IOError | (24 << 8)), | ||
LockedSharedcache = (Result.Locked | (1 << 8)), | ||
BusyRecovery = (Result.Busy | (1 << 8)), | ||
CannottOpenNoTempDir = (Result.CannotOpen | (1 << 8)), | ||
CannotOpenIsDir = (Result.CannotOpen | (2 << 8)), | ||
CannotOpenFullPath = (Result.CannotOpen | (3 << 8)), | ||
CorruptVTab = (Result.Corrupt | (1 << 8)), | ||
ReadonlyRecovery = (Result.ReadOnly | (1 << 8)), | ||
ReadonlyCannotLock = (Result.ReadOnly | (2 << 8)), | ||
ReadonlyRollback = (Result.ReadOnly | (3 << 8)), | ||
AbortRollback = (Result.Abort | (2 << 8)), | ||
ConstraintCheck = (Result.Constraint | (1 << 8)), | ||
ConstraintCommitHook = (Result.Constraint | (2 << 8)), | ||
ConstraintForeignKey = (Result.Constraint | (3 << 8)), | ||
ConstraintFunction = (Result.Constraint | (4 << 8)), | ||
ConstraintNotNull = (Result.Constraint | (5 << 8)), | ||
ConstraintPrimaryKey = (Result.Constraint | (6 << 8)), | ||
ConstraintTrigger = (Result.Constraint | (7 << 8)), | ||
ConstraintUnique = (Result.Constraint | (8 << 8)), | ||
ConstraintVTab = (Result.Constraint | (9 << 8)), | ||
NoticeRecoverWAL = (Result.Notice | (1 << 8)), | ||
NoticeRecoverRollback = (Result.Notice | (2 << 8)) | ||
} | ||
} |
Oops, something went wrong.