Carl Johnsen
e81100de04
Started on adding docstrings
2025-06-17 09:59:22 +02:00
Carl Johnsen
3d11a05400
Added .ConfigureAwait(false) to all of the await statements
2025-06-12 08:34:29 +02:00
Carl Johnsen
da9334d174
Made ExpandInClaseParameterMssqlite generic to avoid casting
2025-06-11 11:07:41 +02:00
Carl Johnsen
f373880c5a
Renamed ExpandInClauseParameterAsync, as one of them isn't actually async.
...
Postfix mssqlite has been added as well to not clash with the IDb implementation
2025-06-11 10:47:40 +02:00
Carl Johnsen
9c2252f36c
Ensured common order and interface for the async extension methods.
2025-06-11 10:46:04 +02:00
Carl Johnsen
1db0fc7789
Reordered the call trace of ExecuteScalarInt64Async
2025-06-11 10:06:55 +02:00
Carl Johnsen
bbe409d564
Reordered the call trace of ExecuteScalarAsync
2025-06-11 10:01:40 +02:00
Carl Johnsen
16fdb633be
Reordered the call trace of ExecuteReaderEnumerableAsync
2025-06-11 09:52:45 +02:00
Carl Johnsen
544ec85d87
Added missing combination of parameters to ExecuterReaderAsync
2025-06-11 09:48:09 +02:00
Carl Johnsen
7c9516eea0
Reordered the call trace of ExecuteNonQueryAsync
2025-06-11 09:42:51 +02:00
Carl Johnsen
1ab303caea
Reordered the call trace of ExecuteReaderAsync
2025-06-11 09:34:50 +02:00
Carl Johnsen
c1710cd6a4
Updated the database helper method for formatting SQL queries for logging
2025-06-11 09:33:30 +02:00
Carl Johnsen
e946b3593a
Handled TODOs in the database extension methods
2025-06-11 09:32:28 +02:00
Carl Johnsen
d78d7c2739
Added additional logging of SQL executions
2025-06-04 09:11:34 +02:00
Carl Johnsen
abcb3569ff
Added additional logging of SQL executions
2025-06-03 21:46:50 +02:00
Carl Johnsen
344d3dcb5b
The new backend requires a value to be set
2025-05-22 15:28:14 +02:00
Carl Johnsen
2cd1692532
Temporary fix to distinguish between new and legacy extension method
2025-05-22 13:25:42 +02:00
Carl Johnsen
21a9f0036c
Reintroduced legacy database methods for non-main operation calls to be able to function.
2025-05-22 13:23:27 +02:00
Carl Johnsen
75c77bdaa6
Fixed async method not being async
2025-05-20 07:08:01 +02:00
Carl Johnsen
c848ca6819
Added more extension methods as they're required by LocalBackupDatabase
2025-05-19 15:43:21 +02:00
Carl Johnsen
ae12d63468
Changed TemporaryDbValueList to use factory construction and to be proper async.
2025-05-19 14:27:01 +02:00
Carl Johnsen
d4c56ec9ef
Changed TemporaryDbValueList from IDb to Microsoft.Data.Sqlite
2025-05-19 13:49:14 +02:00
Carl Johnsen
ab6b2a64c9
Added the extension method to pass ReusableTransactions directly on SqliteCommands
2025-05-19 10:37:37 +02:00
Carl Johnsen
2de3f1d5b5
Reintroduced the synchronous CreateCommand extension method
2025-05-16 12:38:02 +02:00
Carl Johnsen
84b50e5db8
Added the SetTransaction extension method.
...
The main use is to ensure that the given transaction parameter is not null.
Maybe it will be performing more checks in the future.
2025-05-16 12:23:46 +02:00
Carl Johnsen
6782597791
Moved FormatInvariant to inner function and restructured chain of calls when executing commands.
2025-05-16 12:21:56 +02:00
Carl Johnsen
2817f05c93
First WIP changes to extension methods
2025-05-16 12:21:56 +02:00
Carl Johnsen
e00218feb6
Removed whitespace
2025-05-16 12:21:56 +02:00
Kenneth Skovhede
c3fe98c09c
Disable the begin immediate as it seems the library does it automatically
2025-04-14 22:57:44 +02:00
Kenneth Skovhede
faede65d8d
Changed transactions to use a wrapper that ensures a transaction is allocated.
2025-04-14 12:04:00 +02:00
Kenneth Skovhede
35682bd4fe
Cleaned up some nullability issues
2025-04-03 14:20:00 +02:00
Kenneth Skovhede
e96e769ba6
Removed support for positional arguments in extension methods
2025-04-03 13:59:39 +02:00
Kenneth Skovhede
9e3aa72d00
Added LocalBackupDatabase
2025-04-03 11:31:36 +02:00
Kenneth Skovhede
7b948a2f1d
Fixed issue with SQLite bindings not supporting arrays.
...
Added helper class to wrap values in a temporary table if they exceeed the maximum number of parameters.
2025-04-02 23:26:20 +02:00
Kenneth Skovhede
53a1d2a723
Added LocalListBrokenFilesDatabase
2025-04-02 14:06:06 +02:00
Kenneth Skovhede
bf1ef0e794
Fixed nullability warnings
2025-03-24 10:31:52 +01:00
Kenneth Skovhede
fe1cef3be8
Move away from positional parameters in SQL statements.
...
This is a move away from using positional parameters in SQL statements and rok towards only using named parameters.
2025-03-18 22:41:11 +01:00
Kenneth Skovhede
bb1aa8e1f7
Cosmetic cleanup
...
Removed superfluous namespaces.
Using `var` most places.
Using extension methods for common setup of commands.
2025-03-14 14:34:56 +01:00
Kenneth Skovhede
be16323f24
General cleanup, common database validation exception
2025-03-10 14:38:45 +01:00
Kenneth Skovhede and GitHub
6bbd64a655
Fixed nullability warnings in Utility.cs ( #5861 )
...
* Fixed nullability warnings in `Utility.cs`
* Fixed a number of nullability issues and warnings
* More nullable fixes
* Fixed the overwrite issue
* Fixed additional nullability issues
* Removed additional nullability issues
* More nullability fixes and added some xmldoc
* Added more xmldocs and removed an unused argument
* Removed more warnings
2025-01-14 14:03:48 +01:00
Kenneth Skovhede and GitHub
9464caf622
Feature/update license 2025 ( #5851 )
...
* Fixed some minor whitespace issues
* Updated all copyright to 2025
2025-01-07 09:40:39 +01:00
Carl Johnsen
0cd9374bed
Added comments and docstrings
2024-11-22 15:26:04 +01:00
Carl Johnsen
878780dfe4
Added Database.ExecuteReaderEnumerable for prepared statements
2024-11-19 10:32:54 +01:00
Kenneth Skovhede
40dd3c6816
Updated all license mentions to MIT
2024-02-28 15:45:30 +01:00
Kenneth Hsu
13e1f0dac6
Remove unused Database members.
2020-03-14 16:45:08 -07:00
Kenneth Hsu
3551238000
Remove redundant calls to String.Format.
2020-01-25 17:07:02 -08:00
Kenneth Skovhede and GitHub
64201ae706
Merge pull request #3314 from mnaiman/log_sql_variables
...
Log sql variables
2018-08-07 23:32:27 +02:00
Kenneth Skovhede
3831962c82
Fixed an infinite recursion issue
2018-08-07 13:35:30 +02:00
Kenneth Skovhede
e9d7c47602
Disabled logging block and file database access to reduce overhead in these queries.
...
Added an option to explicitly re-enable logging of the database queries (`--profile-all-database-queries`)
2018-08-07 09:40:43 +02:00
Max123456
99bb089b8b
log variables even in release
2018-07-06 19:44:05 +02:00