* end-of-day commit (WIP)
* progress commit (WIP)
* refactored and added InsertAttempt
* async asjusting
* completed implementation for insertAttempt in execution
Added in tests for insertAttempt
* updated wording for new INSERT type
* removed InsertTrait
* 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>