Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge in latest sqlite-net enhancements #1

Merged
merged 121 commits into from
Jul 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
85b02de
Add DeleteAllAsync
thomaslevesque Jan 22, 2015
84d300e
fix for bundle_green ByteArray Empty vs null test
tofutim Dec 17, 2016
c6478a7
-SQLiteAsync added support or ThenBy ThenByDescending
danardelean Feb 22, 2017
ede6e20
Fix broken doc comments.
CyrusNajmabadi Mar 29, 2017
95f91e3
Boxing required in EnumCacheInfo to avoid invalid cast exception
abbottea Apr 3, 2017
93c1b85
Concurrency Test to prove failure on iOS
JeroenBer May 9, 2017
0f2e366
Merge pull request #537 from JeroenBer/master
praeclarum May 25, 2017
e54b98d
Merge pull request #532 from ea-orbital8/master
praeclarum May 25, 2017
3ed134e
Merge pull request #525 from CyrusNajmabadi/docComments
praeclarum May 25, 2017
30e7740
Merge pull request #513 from danardelean/master
praeclarum May 25, 2017
d99aa5d
Merge pull request #489 from loqu8/bytearraybundlegreen
praeclarum May 25, 2017
a21e6c6
Bump Raw to 1.1.5
praeclarum May 25, 2017
c95cca0
Add a configurable tracer
praeclarum May 25, 2017
ed244cd
Cleanup AutoGuid code
praeclarum May 25, 2017
86cefe8
Fix insert tracing
praeclarum May 26, 2017
7439534
Add non-generic versions of all functions
praeclarum May 26, 2017
7fa6077
Fix doc comments
praeclarum May 26, 2017
f053c67
Remove the old reflection API
praeclarum May 26, 2017
9776f4f
Use IReflectableType inplace of GetType() when possible
praeclarum May 26, 2017
c91cab9
Prepare for 1.3.3 release
praeclarum May 26, 2017
c4b4031
Use IsDefined to check for IgnoreAttribute
leonluc-dev Jun 9, 2017
bcb8a60
Move nuget logo into root
praeclarum Jun 14, 2017
199b8df
Merge pull request #559 from gameleon-dev/master
praeclarum Jun 14, 2017
7db4768
Fix for Nullable Enum
Jun 21, 2017
967e8f6
Merge pull request #566 from FredericDgrv/master
praeclarum Jul 3, 2017
665007a
StartsWith, EndsWith, and Contains generated SQL behaves like the Sys…
Jul 11, 2017
feca677
Remove StringComparison.InvariantCulture (not supported by PCL)
Jul 12, 2017
6a53501
Fix concurrency test on iOS
praeclarum Jul 27, 2017
f2ad311
Fix setting nullable enums
praeclarum Jul 27, 2017
ff09316
Switch iOS sim builds to 64-bit
praeclarum Jul 27, 2017
1b809da
Merge pull request #577 from andrew-tavera/master
praeclarum Jul 27, 2017
9be9171
Package PDB files
praeclarum Jul 27, 2017
9c496bb
Create new .NET Standard library
praeclarum Jul 27, 2017
6145656
Fix building the old PCL version
praeclarum Jul 27, 2017
27fa298
Use explicit dependencies in nuspec
praeclarum Jul 27, 2017
6762233
Merge pull request #588 from praeclarum/std2
praeclarum Jul 27, 2017
7e4309e
Add test for inherited ignores
praeclarum Jul 28, 2017
0772010
Added more SQLCipher details
praeclarum Aug 1, 2017
0e056e7
Merge pull request #298 from thomaslevesque/extraasyncmethods
praeclarum Aug 1, 2017
05e71dc
Fix ignoring redefined columns
praeclarum Aug 1, 2017
c3edf02
Add a test to make sure the migrator adds columns
praeclarum Aug 1, 2017
ccb2ee3
Add test for derived ignore attributes
praeclarum Aug 1, 2017
fd4945d
Add test for named column overrides
praeclarum Aug 1, 2017
2c5f1e1
Fix using Select() table queries
praeclarum Aug 1, 2017
f8a8a8b
Support updating tables with only a PK
praeclarum Aug 1, 2017
2df530a
Fix querying interfaces
praeclarum Aug 1, 2017
0039925
Only use sqlite3_close_v2 if it is supported
praeclarum Aug 1, 2017
68767da
Add tool to diff the async api
praeclarum Aug 1, 2017
cce26c1
Add Delete async functions
praeclarum Aug 1, 2017
e8b4e75
Make API diff output GFM
praeclarum Aug 1, 2017
d0a6d3e
Add `Close` to async connections
praeclarum Aug 2, 2017
1bd11c9
Add async connection properties
praeclarum Aug 2, 2017
864fffd
Add async query functions
praeclarum Aug 2, 2017
0829d44
Add async update methods
praeclarum Aug 2, 2017
3db31a0
Add async CreateTables and CreateIndex overloads
praeclarum Aug 2, 2017
afb8590
Refactor async database locking code
praeclarum Aug 2, 2017
d215bf8
Add .editorconfig
praeclarum Aug 2, 2017
1c4977c
Add space around method params/args
praeclarum Aug 2, 2017
a3b30b0
Change white space to match .editorconfig
praeclarum Aug 2, 2017
5bc7d66
Bump SQLitePCLRaw to 1.1.7 to fix macOS
praeclarum Aug 2, 2017
786ee04
Update Profile 259 nuget lib path
praeclarum Aug 2, 2017
0b08550
Bump the version to 1.5
praeclarum Aug 2, 2017
feead3c
Add API diff to tests
praeclarum Aug 2, 2017
a98925b
Add AsyncConnection documentation comments
praeclarum Aug 2, 2017
4e04161
Fix API diff test
praeclarum Aug 2, 2017
3265138
Add query ToList and ToArray implementations
praeclarum Aug 2, 2017
1bc15f5
Refactor db access code in async queries
praeclarum Aug 2, 2017
3c1a4ac
Fully disable Joins test
praeclarum Aug 2, 2017
49a0537
Add missing async query methods
praeclarum Aug 2, 2017
0735ca4
Fix query Delete to use the query Where clause
praeclarum Aug 2, 2017
d96e30f
Fix the return value of CreateTable
praeclarum Aug 3, 2017
3d1ffc1
Add CreateFlags doc comments
praeclarum Aug 3, 2017
8988f25
Add test for scalar queries with 1 row
praeclarum Aug 3, 2017
9209ea9
Improve the doc comments for CreateFlags
praeclarum Aug 3, 2017
4d5167c
Add doc comments to CollationAttribute
praeclarum Aug 3, 2017
4cb1296
Improve doc comments for Insert
praeclarum Aug 3, 2017
20ad278
Switch to using ListDiff nuget
praeclarum Aug 4, 2017
1158308
Add SQLite-net-base project
praeclarum Aug 4, 2017
46310ce
Add Base nuspec
praeclarum Aug 4, 2017
18ba21c
Generate debug symbols and XML for base nugets
praeclarum Aug 4, 2017
b4bc62f
Retitle the Base package
praeclarum Aug 5, 2017
6c78cbf
Fix nuget deps for base package
praeclarum Aug 5, 2017
7df294f
Merge pull request #596 from praeclarum/add-base
praeclarum Aug 5, 2017
c969ade
Change Close() to be CloseAsync()
praeclarum Aug 5, 2017
5356727
Use absolute paths in README Examples
praeclarum Aug 11, 2017
6451a52
When in full mutex, Writing reading lo longer locks, Default to full …
Clancey Aug 11, 2017
fb9e72a
Added locking Table Creation
Clancey Aug 11, 2017
841427a
Added WAL Support
Clancey Aug 11, 2017
5476d98
Made the ReadAsync, non locking instead of Write
Clancey Aug 11, 2017
ccd849c
Removed blocking CreateTables from async
Clancey Aug 11, 2017
d2b144c
Move prepared inserts out of mapping
praeclarum Aug 12, 2017
280d4ba
Share table mappings and make thread safe
praeclarum Aug 12, 2017
d1fa883
Switch to using custom ToList in First impls
praeclarum Aug 12, 2017
4fabb22
Fix identifier escaping used in the query example
praeclarum Aug 12, 2017
a206cf8
Fix preserving ColumnInfo on iOS and Android with linker
praeclarum Aug 12, 2017
8c72783
Switch to versioning in the CI
praeclarum Aug 12, 2017
44f2c5f
Rename iOS Test so that Instruments works
praeclarum Aug 12, 2017
689ee77
Add String.Replace handling in linq queries
praeclarum Aug 12, 2017
320f16b
Fixes #492: Create temporary on-disk database by specificing empty st…
MKuckert Aug 12, 2017
c471c42
#595: Implements specifying WithoutRowId on the TableAttribute to cre…
MKuckert Aug 12, 2017
e8849bf
Support enums with repeated values
praeclarum Aug 12, 2017
5b2084c
Merge pull request #607 from MKuckert/fix/492
praeclarum Aug 12, 2017
a3b906b
Merge pull request #608 from MKuckert/fix/595
praeclarum Aug 12, 2017
5c9a41f
Make DeferredQuery docs clearer
praeclarum Aug 12, 2017
24c0ce1
Add sqlite-net-sqlcipher nuget package and project
praeclarum Aug 13, 2017
bb5eee3
Test enums defined as bytes
praeclarum Aug 13, 2017
dbe79d6
Add SetKey to connection to support SQLCipher
praeclarum Aug 13, 2017
75926db
Changed naming around the mutex connection.
Clancey Aug 13, 2017
5a9fbeb
Log errors when stress test fails
praeclarum Aug 13, 2017
c7837ce
Merge pull request #505 from Clancey/master
praeclarum Aug 13, 2017
49a42b1
Added Uri, UriBuilder and StringBuilder support
xperiandri Aug 14, 2017
153052e
Merge pull request #611 from xperiandri/uri_support
praeclarum Aug 14, 2017
19ff613
Updated .gitignore to modern set
xperiandri Aug 14, 2017
33a5b68
Merge pull request #612 from xperiandri/modern_gitignore
praeclarum Aug 15, 2017
d9fae5b
Remove debug info from nuget release builds
praeclarum Aug 16, 2017
62c620f
Rollback transactions if the commit/release fails
praeclarum Aug 16, 2017
786f940
Add test to make sure async transaction failures rollback
praeclarum Aug 16, 2017
32ef5e6
according to this article : https://blogs.msdn.microsoft.com/pfxteam/…
FatJohn Aug 17, 2017
405faf1
allow comparison with nullable parameter
kicsiede Aug 20, 2017
de7afe9
Merge pull request #617 from FatJohn/master
praeclarum Aug 24, 2017
5603ee0
Merge pull request #618 from kicsiede/master
praeclarum Aug 24, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
169 changes: 169 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
# editorconfig.org

# top-most EditorConfig file
root = true

# Default settings:
# A newline ending every file
# Use 4 spaces as indentation
[*]
insert_final_newline = true
indent_style = space
indent_size = 4
end_of_line = lf

[project.json]
indent_size = 2

# C# files
[*.cs]
end_of_line = lf
indent_style = tab
tab_width = 4

# New line preferences
csharp_new_line_before_open_brace = types:methods
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_within_query_expression_clauses = true

# Indentation preferences
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents = true
csharp_indent_switch_labels = true
csharp_indent_labels = flush_left

# avoid this. unless absolutely necessary
dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_event = false:suggestion

# only use var when it's obvious what the variable type is
csharp_style_var_for_built_in_types = false:none
csharp_style_var_when_type_is_apparent = false:none
csharp_style_var_elsewhere = false:suggestion

# use language keywords instead of BCL types
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
dotnet_style_predefined_type_for_member_access = true:suggestion

# name all constant fields using PascalCase
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style

dotnet_naming_symbols.constant_fields.applicable_kinds = field
dotnet_naming_symbols.constant_fields.required_modifiers = const

dotnet_naming_style.pascal_case_style.capitalization = pascal_case

# static fields should have s_ prefix
dotnet_naming_rule.static_fields_should_have_prefix.severity = suggestion
dotnet_naming_rule.static_fields_should_have_prefix.symbols = static_fields
dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style

dotnet_naming_symbols.static_fields.applicable_kinds = field
dotnet_naming_symbols.static_fields.required_modifiers = static

dotnet_naming_style.static_prefix_style.required_prefix = s_
dotnet_naming_style.static_prefix_style.capitalization = camel_case

# internal and private fields should be _camelCase
dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style

dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal

dotnet_naming_style.camel_case_underscore_style.required_prefix = _
dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case

# Code style defaults
dotnet_sort_system_directives_first = true
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = false

# Expression-level preferences
dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_null_propagation = true:suggestion

# Expression-bodied members
csharp_style_expression_bodied_methods = false:none
csharp_style_expression_bodied_constructors = false:none
csharp_style_expression_bodied_operators = false:none
csharp_style_expression_bodied_properties = true:none
csharp_style_expression_bodied_indexers = true:none
csharp_style_expression_bodied_accessors = true:none

# Pattern matching
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion

# Null checking preferences
csharp_style_throw_expression = true:suggestion
csharp_style_conditional_delegate_call = true:suggestion

# Space preferences
csharp_space_after_cast = false
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_after_comma = true
csharp_space_after_dot = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_after_semicolon_in_for_statement = true
csharp_space_around_binary_operators = before_and_after
csharp_space_around_declaration_statements = do_not_ignore
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_before_comma = false
csharp_space_before_dot = false
csharp_space_before_open_square_brackets = false
csharp_space_before_semicolon_in_for_statement = false
csharp_space_between_empty_square_brackets = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = true
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_declaration_name_and_open_parenthesis = true
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_space_between_square_brackets = false

# C++ Files
[*.{cpp,h,in}]
curly_bracket_next_line = true
indent_brace_style = Allman

# Xml project files
[*.{csproj,vcxproj,vcxproj.filters,proj,nativeproj,locproj}]
indent_size = 2
end_of_line = crlf

# Xml build files
[*.builds]
indent_size = 2

# Xml files
[*.{xml,stylecop,resx,ruleset}]
indent_size = 2

# Xml config files
[*.{props,targets,config,nuspec}]
indent_size = 2

# Shell scripts
[*.sh]
end_of_line = lf
[*.{cmd, bat}]
end_of_line = crlf

[Makefile]
indent_style = tab
34 changes: 28 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ bld/
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
dist/

# MSTest test Results
[Tt]est[Rr]esult*/
Expand All @@ -46,6 +47,7 @@ dlldata.c

# DNX
project.lock.json
project.fragment.lock.json
artifacts/

*_i.c
Expand Down Expand Up @@ -84,6 +86,8 @@ ipch/
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb

# Visual Studio profiler
*.psess
Expand Down Expand Up @@ -142,11 +146,16 @@ publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
#*.pubxml
*.publishproj

# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/

# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
Expand All @@ -167,12 +176,11 @@ csx/
ecf/
rcf/

# Microsoft Azure ApplicationInsights config file
ApplicationInsights.config

# Windows Store app package directory
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt

# Visual Studio cache files
# files ending in .cache can be ignored
Expand All @@ -186,11 +194,16 @@ ClientBin/
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
node_modules/
orleans.codegen.cs

# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)


# RIA/Silverlight projects
Generated_Code/

Expand Down Expand Up @@ -236,6 +249,15 @@ _Pvt_Extensions

# Paket dependency manager
.paket/paket.exe
paket-files/

# FAKE - F# Make
.fake/

# JetBrains Rider
.idea/
*.sln.iml

# CodeRush
.cr/

Binary file added Logo-low.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 23 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,35 @@


SRC=src/SQLite.cs src/SQLiteAsync.cs

all: test nuget

test: tests/bin/Debug/SQLite.Tests.dll
test: tests/bin/Debug/SQLite.Tests.dll tests/ApiDiff/bin/Debug/ApiDiff.exe
nunit-console tests/bin/Debug/SQLite.Tests.dll
mono tests/ApiDiff/bin/Debug/ApiDiff.exe

tests/bin/Debug/SQLite.Tests.dll: tests/SQLite.Tests.csproj src/SQLite.cs src/SQLiteAsync.cs
xbuild tests/SQLite.Tests.csproj
tests/bin/Debug/SQLite.Tests.dll: tests/SQLite.Tests.csproj $(SRC)
msbuild tests/SQLite.Tests.csproj

nuget: srcnuget pclnuget
tests/ApiDiff/bin/Debug/ApiDiff.exe: tests/ApiDiff/ApiDiff.csproj $(SRC)
msbuild tests/ApiDiff/ApiDiff.csproj

srcnuget: src/SQLite.cs src/SQLiteAsync.cs sqlite-net.nuspec
nuget pack sqlite-net.nuspec
nuget: srcnuget pclnuget basenuget sqlciphernuget

pclnuget: src/SQLite.cs src/SQLiteAsync.cs
packages: nuget/SQLite-net/packages.config
nuget restore SQLite.sln
'/Applications/Xamarin Studio.app/Contents/MacOS/mdtool' build '-c:Release|iPhone' SQLite.sln -p:SQLite-net

srcnuget: sqlite-net.nuspec $(SRC)
nuget pack sqlite-net.nuspec

pclnuget: sqlite-net-pcl.nuspec packages $(SRC)
msbuild "/p:Configuration=Release" nuget/SQLite-net/SQLite-net.csproj
msbuild "/p:Configuration=Release" nuget/SQLite-net-std/SQLite-net-std.csproj
nuget pack sqlite-net-pcl.nuspec -o .\

basenuget: sqlite-net-pcl.nuspec packages $(SRC)
msbuild "/p:Configuration=Release" nuget/SQLite-net-base/SQLite-net-base.csproj
nuget pack sqlite-net-base.nuspec -o .\

sqlciphernuget: sqlite-net-sqlcipher.nuspec packages $(SRC)
msbuild "/p:Configuration=Release" nuget/SQLite-net-sqlcipher/SQLite-net-sqlcipher.csproj
nuget pack sqlite-net-sqlcipher.nuspec -o .\
Loading