Commit Graph

4070 Commits

Author SHA1 Message Date
Georg Semmler
d2d7ffb503
Merge pull request #2868 from hi-rustin/rustin-patch-bump
build: bump serde_regex to v1.1
2021-08-23 07:12:23 +00:00
Georg Semmler
66d5129caa
Merge pull request #2867 from hi-rustin/rustin-patch-clippy
Remove useless clippys
2021-08-23 07:11:46 +00:00
Georg Semmler
4babb6b447
Merge pull request #2866 from hi-rustin/rustin-patch-docs
Aligning clippy command with GitHub actions
2021-08-23 07:11:11 +00:00
hi-rustin
e930dd1a3f build: bump serde_regex to v1.1
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2021-08-23 10:48:34 +08:00
hi-rustin
899ed240fe Remove useless clippys
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2021-08-23 10:42:13 +08:00
hi-rustin
515aa66a8e Aligning clippy command with GitHub actions
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2021-08-23 10:21:58 +08:00
Georg Semmler
6eae69f3e6
Merge pull request #2860 from hi-rustin/rustin-patch-error
Add ClosedConnection error kind
2021-08-18 13:26:47 +00:00
hi-rustin
07a24a4edb add more comments
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2021-08-18 19:42:21 +08:00
hi-rustin
26da66f2ce Make clippy happy
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2021-08-18 10:56:22 +08:00
hi-rustin
915a9daa3e Add ClosedConnection error kind
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2021-08-18 10:44:30 +08:00
Georg Semmler
3640bc6144
Merge pull request #2856 from jrheard/patch-1
small typo fix
2021-08-16 18:14:32 +00:00
JR Heard
ebd4df52cc
small typo fix 2021-08-16 11:08:44 -07:00
Georg Semmler
17f0bc8e65
Merge pull request #2835 from msdrigg/patch-1
Supporting Const-Generics on derives for FromSqlRow and AsExpression
2021-08-12 12:37:33 +00:00
Georg Semmler
82aef652d4
Fix formating 2021-08-12 13:26:19 +02:00
Scott Driggers
c719f1ccea
Fixing confusing files 2021-08-12 11:14:54 +02:00
Scott Driggers
3a9a6c8b69
Fixing confusing structure in from_sql_row 2021-08-12 11:14:54 +02:00
Scott Driggers
0823e3be8f
Adding single test 2021-08-12 11:14:54 +02:00
Scott Driggers
e1971e992d
Updating from_sql_row 2021-08-12 11:14:54 +02:00
Scott Driggers
d08d12a900
Adding const-generics to AsExpression
Updating as_expression derivation to include const-generics
2021-08-12 11:14:54 +02:00
Georg Semmler
c557ab1f6b
Merge pull request #2849 from hi-rustin/rustin-patch-actions
Using GitHub actions concurrency mode to reduce CI queue time
2021-08-12 09:13:12 +00:00
Georg Semmler
f445bc1cbf
Merge pull request #2827 from weiznich/prepared_statements_for_certain_insert_variants
Various insert improvments
2021-08-12 09:12:41 +00:00
Georg Semmler
d7f7da6113
Minor fixes 2021-08-12 08:23:43 +00:00
Georg Semmler
77fe24318f
Merge pull request #2848 from hi-rustin/rustin-patch-if-else
Extracting the same statement from different logical branches
2021-08-12 06:54:16 +00:00
hi-rustin
0ea272929e add comments
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2021-08-12 14:28:18 +08:00
hi-rustin
8b27dddbea Using GitHub actions concurrency mode to reduce CI queue time
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2021-08-12 14:23:06 +08:00
hi-rustin
cd855f0a25 Extracting the same statement from different logical branches
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2021-08-12 14:11:10 +08:00
Georg Semmler
8116ddc8d9
Fix queryid for batch inserts to use ValuesClause independently from
which insertable is actually used
2021-08-11 17:27:38 +02:00
Georg Semmler
6e46d08d1a
Merge pull request #2844 from Sejsel/patch-1
Fix typo in code sample in 2.0 changelog
2021-08-07 05:54:16 +00:00
Jiří Sejkora
e81c58763d
Fix typo in code sample in 2.0 changelog
The real name of the type is `EmbeddedMigrations`.
2021-08-07 05:49:13 +02:00
Georg Semmler
8ba1f9e376
Merge pull request #2837 from Razican/hash_column_table
Implement Hash, PartialEq and Eq for dynamic columns and tables
2021-08-03 11:12:36 +00:00
Iban Eguia (Razican)
da3fa19a0b
Implement PartialEq and Eq 2021-07-31 20:14:14 +02:00
Iban Eguia (Razican)
40a5c11db9
Implement Hash for dynamic columns and tables 2021-07-31 20:06:06 +02:00
Georg Semmler
d5f60ad952
Various insert improvments
* Cache insert statments from queries, as those are safe to cache if the
  query itself is safe to cache
* Add a way to directly insert from a statically sized array
* Decouple default values from insert expressions and allow to generate
  insertable implementations that do not use the default values.
   + This unblocks real batch inserts on sqlite
   + This allows cache the prepared statements for insert from statically sized arrays as we know the size at compile time here
* Update the benchmarks to use the statically compile time variant.
  Other implementations also use prepared statements here, so this is
just fair
2021-07-27 13:27:40 +02:00
Georg Semmler
9093582147
Merge pull request #2832 from Ten0/fix/cli_no_silent_fail_when_failing_to_read_migration_dir
CLI - Don't silent fail when failing to read migration directory
2021-07-21 19:59:34 +00:00
Thomas BESSOU
0651942d78 CLI - Don't silent fail when failing to read migration directory
The `migrations_directories` from `migration_internals` silently dropped failing to read the migrations directory by calling `into_iter()` on the result of `read_dir()`.

The error is now propagated as an extra `Result` level on these functions, because keeping the same signature would require putting these errors inside the iterator, which would have required adding a dependency on `either` for the implementation to not be unreasonable.
2021-07-21 21:17:26 +02:00
Georg Semmler
02c79a6536
Merge pull request #2828 from dchenk/fix-r2d2-transaction-rollback
Call rollback_transaction instead of begin_transaction when rolling back
2021-07-15 07:34:06 +00:00
dchenk
6c27486bd6 Call rollback_transaction instead of begin_transaction when rolling back 2021-07-14 10:31:11 -07:00
Georg Semmler
dfa8182f3c
Merge pull request #2820 from Ten0/feature/assume_not_null
AssumeNotNull expression support
2021-07-13 17:03:04 +00:00
Thomas BESSOU
8e66f021c3 Add more doc on the interaction between Queryable and Nullable
Also make related doctest on `assume_not_null` actually check its result, so
that we notice any change in behavior that would require updating it.
Update it so that it refers to the documentation on `Queryable`.
2021-07-12 15:14:18 +02:00
Pavan Kumar Sunkara
83ffef7b49
Merge pull request #2821 from Ten0/fix/duplicate_imports_in_sql_types_module_generation
Fix - duplicate use statements generated by CLI
2021-07-08 18:57:30 +01:00
Thomas BESSOU
63bb09fdf4 Fix - duplicate use statements generated by CLI 2021-07-08 19:06:54 +02:00
Thomas BESSOU
5e5ab564a0 remove untrue comment 2021-07-08 18:05:40 +02:00
Thomas BESSOU
756cea4cdd update trybuild outputs 2021-07-08 16:26:52 +02:00
Thomas BESSOU
6b38d06737 assume_not_null PR review 2021-07-08 16:19:38 +02:00
Thomas BESSOU
a0a0046da5 Improve assume_not_null dangerous usage example 2021-07-08 12:49:17 +02:00
Thomas BESSOU
70544a79e0 AssumeNotNull expression 2021-07-08 02:42:46 +02:00
Georg Semmler
72bfb356b8
Merge pull request #2815 from weiznich/fix/sql_types_module_generation
Only generate one sql_types module
2021-06-28 11:21:34 +00:00
Georg Semmler
04d537f2d8
Reoganize backend specific printing code to reason easier about unused variables 2021-06-28 12:02:36 +02:00
Georg Semmler
28852afa3d
Only generate one sql_types module 2021-06-25 17:15:42 +02:00
Georg Semmler
b048d6edc4
Merge pull request #2787 from weiznich/infer_missing_sql_types
Generate SQL type definitions for unknown types
2021-06-25 07:37:51 +00:00