* Added enum for SQL Error and basic functions for it
* fmt
* Restructured code to allow multiple database system simultaneously
* updated code error and moved Eq to derive by compiler
* added ForeignKeyViolation implementation
* fmt
* added type param
* changed type param and used unwrap_or_default instead of unwrap
* fmt
* refactor code and update documentation
* updated some error code and fixed formatting
* create SQL Err test for UniqueConstraintViolation
* fmt
* updated error codes for mysql errors
* added test for ForeignKeyConstraintViolation and removed unused imports/codes
* fmt
* updated doc and error message
* added static str in SqlErr
* changed to add error message into SqlErr as String
* updated test file to check database type through connection
* fmt
* updated test for SqlErr to match the error type only
* Removed comment and fixed grammar mistake
* fmt
* Update src/error.rs
* Refactoring
---------
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
* Test suit load environment variable from env files
* Added expr() and exprs() for QuerySelect trait and Minor typo fix
* fmt
* Added doc testing for the new functions
* Remove excess comment for doc test
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
* Remove excess comment for doc test
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
* updated doc tests to make example more realistic
* changed doc test again for more realistic query and added expr_as()
* aligned expr_as() alias input with column_as() input
* update doc test for expr_as() according to previous changes
---------
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
* Add DeriveRelatedEntity macro
* Add generation for related enum and seaography
* Add seaography cli param
* update codegen tests
* Fix DeriveRelatedEntity macro doc and includes
* Fix all RelatedEntity variants for RelationBuilder
* Add tests for code
* Cargo format
* Fix clippy code
* Fix format
* Fix unit tests
* Fix unit tests
* Provide default for seaography::RelationBuilder
* Update changelog
* Update tests
* Modify code to match feedback
* Bring old Related Impl trait generation
* Modify DeriveRelatedEntity to gen impl seaography::RelationBuilder
* Generate RelatedEntity enum when seaography flag is enabled
* Update documentation
* Update Changelog
* Fix format errors
* Fix code generation
* relations with suffix are definition based
* Rev => Reverse easier to read
* snake_case to cameCase for name generation
* Fix unit tests
* Update lib.rs
* derive `seaography::RelationBuilder` only when `seaography` feature is enabled
* Try constructing async-graphql root for "related entity" and "entity" without relation
* Update demo
* CHANGELOG
* Update Cargo.toml
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
* Revert "Update Cargo.toml"
This reverts commit 6b1669836a4fb5040bfb08999f0cf640c74dc64d.
---------
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
Add `stream_partial_model` to `Select<E>` and `SelectTwo<E,F>`
Minor refactoring
fmt
Add `into_partial_model` to `Cursor<S>`
refactoring
Add test cases
Fix test cases
More test cases
Move partial_model tests
add `PartialModelTrait` for a part of model
re-export `PartialModelTrait`
cargo fmt
add fn`into_partial_model` on `Select`&`SelectTwo`
add `DerivePartialModel` to impl `PartialModel`
add macro `DerivePartialModel` to `sea-orm`
disambiguate `SelectColumns` function
fix macro error
cargo fmt && cargo clippy
move `SelectColumns` from helper.rs to traits.rs
cargo fmt
Reduce nest hell of load attribute argument fetch
✅ test `DerivePartialModel` input parse
`DerivePartialModel` not derive with generic
fix `DerivePartialModel` code generate error
remove unused use
cargo fmt
add `into_partial_model` for `SelectTwoMany`
* Upgrade `tracing-subscriber` dependency to 0.3.17
* Revert "fix: `regex` dep should enable `unicode` feature (#1605)"
This reverts commit 41d9a853342155e0b7df4afb15990225b1c8a981.