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
Chris Tsang
b2954d84af
Readme
2022-03-14 03:19:45 +08:00
Billy Chan
351efd0d6b
Update ActiveModel by JSON ( #492 )
...
* Update ActiveModel by JSON
* Add `ActiveModel::from_json`
* Update test cases
2022-03-13 18:41:32 +08:00
Billy Chan
9687819a7e
Supports time
crate
2022-03-13 18:18:15 +08:00
Chris Tsang
0a26dee674
Readme
2022-03-09 00:21:34 +08:00
Chris Tsang
0f0b482931
Readme
2022-03-09 00:14:33 +08:00
Billy Chan
f3a7a1398a
Merge branch 'master' into pulls/471
2022-03-07 15:52:12 +08:00
Ken-Miura
483de17da8
Describe default value of ActiveValue on document ( #556 )
2022-03-02 12:24:49 +08:00
Billy Chan
858953b478
cargo fmt
2022-02-17 15:44:40 +08:00
Billy Chan
56cf4ea662
Update README.md
2022-02-15 23:32:52 +08:00
Bastian
47f2f4cec8
Easy joins with MockDatabase #447 ( #455 )
...
* Easy joins with MockDatabase #447
* fix MR
* add unit test
* Add test cases
* Cargo fmt
Co-authored-by: Bastian Schubert <bastian.schubert@crosscard.com>
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-02-06 14:45:51 +08:00
Chris Tsang
e305c6669c
Merge pull request #493 from SeaQL/max-lifetime-connection-opt
...
Add `max_lifetime` connection option
2022-02-05 20:50:39 +08:00
Billy Chan
8eb095385d
Migration ( #335 )
...
* Refactor `ConnectionTrait`
* Refactoring
* Build index & foreign key statements
* Fix imports
* Fixup
* Rocket example with migration
* async-std compatible with the tokio 1.0 runtime
* Use reexported dependency
* Compile without selecting any db backend
* Updating sea-orm-cli dep
* sea-orm-cli migrate commands
* cargo fmt
* Test [cli]
* Refactoring
* Clap app name should be "sea-orm-cli"
* Correctly capture MIGRATION_DIR
* Rename README
* Add `sea-orm-cli migrate init` command
* Update README
* Try restructured sea-query dependency (SeaQL/sea-schema#41 )
* Set `DATABASE_URL` environment variable
2022-02-05 20:34:54 +08:00
Chris Tsang
e63d463155
Merge pull request #489 from SeaQL/date-time-utc-local
...
Support `DateTime<Utc>` & `DateTime<Local>`
2022-02-01 15:25:39 +08:00
Billy Chan
8145088814
Refactoring
...
`ColumnDef` with default value
Cargo fmt
Update docs
Fixup
Support `DateTimeLocal`
Update docs
Codegen write db timestamp column as `DateTimeUtc` type
Update dependency
Merge branch 'sea-query/add-new-column-ref' into pr/429
feat: apply alias on `ColumnRef::SchemaTableColumn`
2022-02-01 14:29:03 +08:00