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
Sebastien Guillemot
2f4eadcbac
Derive extra error traits
2022-04-19 19:37:20 +09:00
Chris Tsang
66ba234156
Readme
2022-04-18 23:53:47 +08:00
Chris Tsang
2e12e29c38
Readme
2022-04-18 23:17:52 +08:00
Marcel
e20f6e24c5
Update sea-query dependency to 0.24.0 ( #673 )
...
* Use sea-query 0.24.0
* window: None
* window: None
* window: None
2022-04-18 11:04:30 +08:00
Allen
bdd9133aa6
fix lints and warnings
...
also clean up impl_into_active_value macro
2022-04-09 16:52:47 -07:00
Chris Tsang
ac1071a778
Readme
2022-04-05 21:25:58 +08:00
Chris Tsang
31edb2c409
Rename
2022-04-05 21:23:55 +08:00
Chris Tsang
6175166c79
Add jsonrpsee to example list
2022-04-03 22:16:05 +08:00
Chris Tsang
311a14a470
Rename example
2022-04-03 22:12:48 +08:00
Chris Tsang
c4f0db334d
Fix build error
2022-03-27 00:24:10 +08:00
Billy Chan
6091629adb
cargo fmt
2022-03-25 15:25:49 +08:00
Billy Chan
c504f42cb3
Fixing and testing into_json
of various field types ( #539 )
...
* Fixing and testing `into_json` of various types
* Support `into_json` for UUID
* Testing `into_json` for UUID
* Fixup
2022-03-24 22:38:45 +08:00
Marco Napetti
e80aa07c7c
Add Send to StreamTrait ( #622 )
...
* update ouroboros
* Add Send to StreamTrait
2022-03-22 17:17:07 +08:00
Shouvik Ghosh
12f66618f9
Added delete_by_id ( #590 )
...
* Added delete_by_id
* Added an integration test
* Added composite key example
* Remove extra find_by_id in delete_by_id test
* Added unit test with composite primary key
2022-03-21 14:41:05 +08:00
shinbunbun
7a86ac0239
Implement PaginatorTrait for SelectorRaw ( #617 )
...
* Implement PaginatorTrait for SelectorRaw
* Implement raw test
2022-03-21 14:37:08 +08:00
Chris Tsang
da7cc541eb
Merge pull request #584 from SeaQL/pulls/471
...
Pulls/471
2022-03-21 01:17:46 +08:00
Nick Burrett
a09790ef81
Allow for creation of indexes for PostgeSQL and SQLite ( #593 )
...
* Allow for creation of indexes for PostgeSQL and SQLite
PostgreSQL and SQLite do not allow creation of general indexes within a `CREATE TABLE` statement, so a method is required to generate `CREATE INDEX` statements for these.
`create_table_from_entity` avoids creating invalid statements for non-MySQL backends,
forcing uses to explicitly run `create_index_from_entity`. Ideally creating indexes would be removed from `create_table_from_entity` entirely, but this would introduce a breaking change for MySQL use.
* Remove index creation from create_table_from_entity
Use `create_index_from_entity` for all index creation for consistency across all backends. This is a backwards incompatible change, affecting those using MySQL backend when creating the schema only.
* Revert change to join_8 test after migration to new indexes entity
2022-03-21 00:45:08 +08:00
Chris Tsang
c28d77df6d
Merge branch 'master' into support-time-crate
2022-03-20 23:48:29 +08:00
Billy Chan
3c0fe9bc0a
Update lib.rs
2022-03-16 18:18:27 +08:00
Billy Chan
942f1a9914
Update lib.rs
2022-03-14 13:12:31 +08:00
Billy Chan
73701fef9a
Codegen Unsigned Integer - 2 ( #397 )
...
* feat: codegen unsigned integer
* feat: apply alias on `ColumnRef::SchemaTableColumn`
* Update SQLite test cases, quote identifier with double quotes
* Bump sea-query version to 0.22
* Add dummy line
* Tests [cli] and [issues]
* update sea-schema
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-03-14 12:40:02 +08:00