Billy Chan
af0bc7a0eb
Upgrade SeaORM root's SeaQuery to v0.27
2022-08-24 15:19:15 +08:00
liberwang1013
fff0c87a6d
replaced usize with u64 in PaginatorTrait ( #789 )
...
undefined
2022-08-20 22:43:17 +08:00
Ryuma Taguchi
d262501a44
fix typo in SqlxPostgresConnector::connect()
doc ( #968 )
2022-08-15 23:30:27 +08:00
Billy Chan
43495de0aa
Fix clippy warnings - 1 ( #967 )
...
* Fix clippy warnings
* cargo fmt
* Fix clippy warnings
* cargo fmt
2022-08-12 20:02:53 +08:00
Billy Chan
5e34bcecbe
Edit README
2022-08-11 15:39:50 +08:00
Billy Chan
1a2090fb5e
Give a shout-out to our contributors
2022-08-10 13:40:18 +08:00
Horu
3a3fdf49a1
Fix small typo ( #928 )
2022-08-01 15:03:08 +08:00
Billy Chan
710ef7a66b
Add example links
2022-07-26 14:50:55 +08:00
Billy Chan
f6672137a2
cargo fmt
2022-07-26 12:20:40 +08:00
Chris Tsang
12d3e602f2
Test
2022-07-23 14:55:47 +08:00
Chris Tsang
b48f43bc09
Docs
2022-07-21 23:39:27 +08:00
Billy Chan
83c6e4a4db
RelationDef
& RelationBuilder
are Send
& Sync
(#898 )
...
* `RelationDef` & `RelationBuilder` are `Send` & `Sync`
* [issues] add tests
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-07-21 23:35:20 +08:00
sjud
3d409608e1
removing async_trait from non async trait in connection.rs ( #737 )
2022-07-17 15:12:25 +08:00
Chris Tsang
b74491a476
[issues] [cli] cargo fmt
2022-07-11 23:58:14 +08:00
kyoto7250
23ac958142
include column name in TryGetError::Null ( #853 )
...
* include column name in TryGetError::Null
* remove prefix
2022-07-11 23:16:03 +08:00
Billy Chan
1a8d22d918
cargo fmt
2022-07-11 17:26:57 +08:00
Billy Chan
bb9d532ab5
Support join with table alias ( #852 )
2022-07-11 00:07:11 +08:00
Chris Tsang
a24df5a91e
Tweaks & fmt
2022-07-11 00:03:40 +08:00
Billy Chan
6e47d488d4
Drop SelectTwoMany::one
method ( #813 )
2022-07-10 23:41:10 +08:00
Billy Chan
65017bdc08
Add various blob column types with size ( #850 )
2022-07-10 22:52:50 +08:00
Billy Chan
1a3e8c456a
[CI] run clippy checks & fix clippy warnings ( #840 )
...
* Run clippy checks
* Fix clippy warnings
* Clippy checks for `sea-orm-*` crates
* Fix clippy warnings
* Fixup
2022-07-10 15:38:38 +08:00
Chris Tsang
bfe6eb39d5
Cursor pagination ( #822 )
...
* Cursor pagination
* Apply filter / range filter on cursor; Allow non-primary key filter
* Fixup
* Update cursor API
* Cursor pagination with composite keys
* Docs
* Rename cursor() to cursor_by()
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-07-10 15:08:38 +08:00
Émile Fugulin
d0aeda7bdd
Add time from u64 ( #849 )
2022-07-08 18:20:28 +08:00
Billy Chan
b0ea1138b4
Update lib.rs
2022-07-07 15:20:43 +08:00
baoyachi. Aka Rust Hairy crabs
beef8211d8
fix compile error,res args add type ( #839 )
...
* fix compile error,res add type
* update .gitignore
* fix compile error
* fix compile error
2022-07-05 16:04:11 +08:00
Billy Chan
d6831e5295
Bump version of sqlx, sea-query, sea-schema, time and uuid ( #834 )
...
* Bump version of sqlx, sea-query, sea-schema, time and uuid
* PostgreSQL `u32` was wrapped in `Oid` (launchbadge/sqlx#1602 )
* Update test cases
* Fix clippy warnings
* cargo fmt
* Fix clippy warnings
* Bump sea-schema to ^0.9.2
* Update test cases
* Pin on sea-query minor version
2022-07-05 01:05:11 +08:00
Mateusz
087f8462a6
Parse enum from repr[X] enums with values ( #769 )
...
* parse enum from repr[X] enums with values
* fix parsing negative enums variants with repr[X]
* add tests for enum num_value fallback support
2022-07-02 14:31:16 +08:00
Eric
5037dc99ec
Create a num_items_and_pages
on the paginator
( #768 )
...
* Create a `num_items_and_pages` on the `paginator`
This method allows us to get both number of items and pages of a
paginator with only one database query.
* Improve documentation
* Create a dedicated struct for items and pages number
2022-07-01 02:50:20 +08:00
Billy Chan
ab2f784701
(de)serialize custom JSON types - 2 ( #794 )
...
* de(serialize) custom JSON types
* Rename DeriveTryGetableFromJson -> FromJsonQueryResult
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-07-01 01:27:46 +08:00
Billy Chan
1054d6451c
Use file!()
macro to avoid manually defining the name of migration ( #736 )
...
* Add `DeriveMigrationName`
* CLI migrate generate without replacing migration name
* Update migrations
* Fixup
2022-06-29 00:42:59 +08:00
Billy Chan
75cb269ceb
Custom join on conditions ( #793 )
...
* Custom join on conditions
* Try lambda approach
* Implement debug for relation
* Add example without `rev`
* Add more examples
* Docs
2022-06-29 00:27:55 +08:00
Billy Chan
80d35a9d18
cargo fmt
2022-06-28 16:13:38 +08:00
Chris Tsang
d074fafdde
Merge pull request #778 from nappa85/master
...
Stream metrics
2022-06-26 21:18:00 +08:00
Chris Tsang
53e92ccd0e
Merge pull request #791 from liberwang1013/insert-on-conflict
...
support on conflict in insert query
2022-06-26 19:14:40 +08:00
SandaruKasa
4f26b4a585
sqlx_logging_level
, a wrapper around sqlx::ConnectOptions::log_statements
(#800 )
...
* sqlx_logging_level
* ` = { version = "..." }`
2022-06-26 18:29:44 +08:00
Chris Tsang
12ec00272c
Revert "Cursor Pagination ( #754 )"
...
This reverts commit 6f9dbd260e6e004c369abe0019b4374253db7d3b.
2022-06-26 18:23:47 +08:00
Billy Chan
6f9dbd260e
Cursor Pagination ( #754 )
...
* Cursor pagination
* Apply filter / range filter on cursor; Allow non-primary key filter
* Fixup
* Update cursor API
* Cursor pagination with composite keys
* Docs
2022-06-26 17:48:00 +08:00
cache-missing
73af72200a
✨ feat(sqlite3): support set sqlcipher key
2022-06-13 08:42:14 +08:00
Liber Wang
41ce3e7817
support on conflict in insert query
2022-06-10 21:18:53 +08:00
Marco Napetti
0e1c825e9e
Stream metrics
2022-05-31 12:38:38 +02:00
Chris Tsang
1609e4c743
Edit
2022-05-15 17:44:23 +08:00
Billy Chan
b59f3c58de
cargo fmt
2022-05-13 18:20:59 +08:00
Chris Tsang
b51b1f63d8
Readme
2022-05-13 00:33:07 +08:00
Billy Chan
cdc70f4fd9
Insert Default ( #589 )
...
* Insert default
* Update sea-query
* Fixup
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-05-09 23:46:38 +08:00
Chris Tsang
c8851646e8
Fixup
2022-05-09 22:33:59 +08:00
Chris Tsang
2da0429f41
Changelog
2022-05-09 22:06:23 +08:00
Kirawi
23e95761ca
add is_changed to ActiveModelTrait ( #683 )
...
* add is_changed to ActiveModelTrait
* add test for `ActiveModelTrait::is_changed()`
2022-05-09 21:58:20 +08:00
Chris Tsang
468d704bb0
Merge pull request #677 from SebastienGllmt/patch-1
...
Derive extra error traits
2022-05-09 21:19:02 +08:00
Billy Chan
498c0154ca
Restructure SeaORM migration
...
Bump codegen's sea-query version [cli]
Update CLI subcommand method
Move migration utility into sea-orm-migration
2022-05-09 12:30:55 +08:00
Billy Chan
664f42d22d
cargo fmt
2022-04-26 12:24:17 +08:00