Skip to content

Commit 54923c4

Browse files
committed
Initial commit of split/migrated base
0 parents  commit 54923c4

17 files changed

Lines changed: 890 additions & 0 deletions

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# EditorConfig is awesome: http://editorconfig.org
2+
root = true
3+
4+
[*.cs]
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true

.gitattributes

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
9+
# This is need for earlier builds of msysgit that does not have it on by
10+
# default for csharp files.
11+
# Note: This is only used by command line
12+
###############################################################################
13+
*.cs diff=csharp
14+
15+
###############################################################################
16+
# Set the merge driver for project and solution files
17+
#
18+
# Merging from the command prompt will add diff markers to the files if there
19+
# are conflicts (Merging from VS is not affected by the settings below, in VS
20+
# the diff markers are never inserted). Diff markers may cause the following
21+
# file extensions to fail to load in VS. An alternative would be to treat
22+
# these files as binary and thus will always conflict and require user
23+
# intervention with every merge. To do so, just uncomment the entries below
24+
###############################################################################
25+
#*.csproj merge=binary
26+
#*.dbproj merge=binary
27+
#*.fsproj merge=binary
28+
#*.lsproj merge=binary
29+
#*.modelproj merge=binary
30+
#*.sln merge=binary
31+
#*.sqlproj merge=binary
32+
#*.vbproj merge=binary
33+
#*.vcproj merge=binary
34+
#*.vcxproj merge=binary
35+
#*.wixproj merge=binary
36+
#*.wwaproj merge=binary
37+
38+
###############################################################################
39+
# Behavior for image files
40+
#
41+
# Image files are treated as binary by default.
42+
###############################################################################
43+
*.gif binary
44+
*.ico binary
45+
*.jpg binary
46+
*.png binary

.gitignore

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ins.
3+
4+
# Build output
5+
[Bb]in/
6+
[Dd]ebug/
7+
[Dd]ebugPublic/
8+
[Oo]bj/
9+
[Rr]elease/
10+
[Rr]eleases/
11+
12+
# Build testing
13+
## MSTest
14+
[Tt]est[Rr]esult*/
15+
[Bb]uild[Ll]og.*
16+
## NUnit
17+
*.VisualState.xml
18+
TestResult.xml
19+
20+
# NuGet packages
21+
*.nupkg
22+
**/packages/*
23+
!**/packages/build/
24+
!**/packages/repositories.config
25+
26+
# OS-specific files
27+
.*DS_Store
28+
._*
29+
30+
# Roslyn caches
31+
*.ide/
32+
33+
# User-specific files
34+
.idea/
35+
*.sln.docstates
36+
*.suo
37+
*.user
38+
*.userosscache
39+
*.userprefs
40+
41+
# Visual C++ cache files
42+
ipch/
43+
*.aps
44+
*.ncb
45+
*.opensdf
46+
*.sdf
47+
*.cachefile
48+
49+
# Visual Studio
50+
.vs/
51+
*.psess
52+
*.vsp
53+
*.vspx
54+
55+
# Visual Studio add-ins
56+
## DotCover code coverage tool
57+
*.dotCover
58+
## JustCode add-in
59+
.JustCode
60+
## ReSharper add-in
61+
_ReSharper*/
62+
*.[Rr]e[Ss]harper
63+
*.DotSettings.user
64+
## TeamCity add-in
65+
_TeamCity*

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2014-2017 Oxide Team and Contributors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

NuGet.config

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<config>
4+
<add key="globalPackagesFolder" value="packages" />
5+
</config>
6+
<packageRestore>
7+
<add key="enabled" value="True" />
8+
<add key="automatic" value="True" />
9+
</packageRestore>
10+
<activePackageSource>
11+
<add key="All" value="(Aggregate source)" />
12+
</activePackageSource>
13+
<packageSources>
14+
<add key="Oxide" value="https://www.myget.org/F/oxide" />
15+
</packageSources>
16+
</configuration>

Oxide.SQLite.sln

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio 15
3+
VisualStudioVersion = 15.0
4+
MinimumVisualStudioVersion = 15.0
5+
Project("{A368D19F-85B0-4AB4-9782-3FDEA33D33D1}") = "Oxide.SQLite", "Oxide.SQLite\Oxide.SQLite.csproj", "{C54EA613-C5FD-4ACD-8AC4-79063B08CF5A}"
6+
EndProject
7+
Global
8+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9+
Debug|Any CPU = Debug|Any CPU
10+
Release|Any CPU = Release|Any CPU
11+
EndGlobalSection
12+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
13+
{C54EA613-C5FD-4ACD-8AC4-79063B08CF5A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{C54EA613-C5FD-4ACD-8AC4-79063B08CF5A}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{C54EA613-C5FD-4ACD-8AC4-79063B08CF5A}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{C54EA613-C5FD-4ACD-8AC4-79063B08CF5A}.Release|Any CPU.Build.0 = Release|Any CPU
17+
EndGlobalSection
18+
EndGlobal

Oxide.SQLite/Connection.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using System.Data.SQLite;
2+
#if NET35
3+
using System.Security.Permissions;
4+
#endif
5+
using Oxide.Core.Plugins;
6+
7+
namespace Oxide.Ext.SQLite
8+
{
9+
#if NET35
10+
[ReflectionPermission(SecurityAction.Deny, Flags = ReflectionPermissionFlag.AllFlags)]
11+
#endif
12+
public sealed class Connection
13+
{
14+
internal string ConnectionString { get; set; }
15+
internal bool ConnectionPersistent { get; set; }
16+
internal SQLiteConnection Con { get; set; }
17+
internal Plugin Plugin { get; set; }
18+
public long LastInsertRowId { get; internal set; }
19+
20+
public Connection(string connection, bool persistent)
21+
{
22+
ConnectionString = connection;
23+
ConnectionPersistent = persistent;
24+
}
25+
}
26+
}
280 KB
Binary file not shown.
27 KB
Binary file not shown.
818 KB
Binary file not shown.

0 commit comments

Comments
 (0)