2201 Commits

Author SHA1 Message Date
Chris Tsang
27af2c9c05 cargo fmt check 2023-06-22 07:42:48 +08:00
Chris Tsang
6d40569164 Update build script 2023-06-22 07:07:53 +08:00
Chris Tsang
6bb7bb30fa update examples 2023-06-22 07:06:48 +08:00
Chris Tsang
b45534c8c2 0.12.0-rc.3 2023-06-22 07:00:42 +08:00
Chris Tsang
320cbf5b75 Remove nightly from Examples 2023-06-22 16:08:09 +08:00
Chris Tsang
ec198060c3 Prepare for rc.3 2023-06-22 06:48:39 +08:00
Chris Tsang
1f3fa1dc19 Changelog with Tweaks 2023-06-21 23:14:57 +08:00
darkmmon
6e7950158a
Do nothing on conflict (#1712)
* added Conflicted to TryInsertResult

clippy changes

fmt

change from basic if statement to matches

* changed to early return
2023-06-21 22:47:17 +08:00
Chris Tsang
f7398d1c5c Fixup 2023-06-20 17:59:58 +08:00
Chris Tsang
20312b776d Revert "Changelog"
This reverts commit 5e5aa7cbd184db141446960e7960d12c9a61363a.
2023-06-20 17:31:25 +08:00
Chris Tsang
40ee2b29ee Changelog 2023-06-20 17:30:16 +08:00
Chris Tsang
5e5aa7cbd1 Changelog 2023-06-20 17:23:05 +08:00
darkmmon
92ea837cdf
Make insert statement not panic when inserting nothing (#1708)
* 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
2023-06-20 17:17:18 +08:00
Tsiry Sandratraina
7c6ab8fa2d
Update COMMUNITY.md (#1710) 2023-06-19 17:43:27 +08:00
Billy Chan
5c75a53614
CHANGELOG 2023-06-19 17:19:28 +08:00
darkmmon
b37e7655f8
Added enum for SQLx Error and basic functions for it (#1707)
* 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>
2023-06-19 17:19:08 +08:00
Billy Chan
c477f67190
COMMUNITY 2023-06-13 21:14:59 +08:00
Billy Chan
fc1a5475b4
CHANGELOG 2023-06-13 21:07:20 +08:00
darkmmon
0816faa7f1
#1696 fix (#1702)
* 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>
2023-06-13 21:01:15 +08:00
Billy Chan
d35cd6aa3b
Test suit load environment variable from env files (#1701) 2023-06-12 17:19:30 +08:00
Benji Grant
1431d8027c
COMMUNITY.md (#1697)
Add Crab Fit 🦀
2023-06-11 18:13:08 +08:00
Alvaro Parker
adc467f228
Fix a small typo (#1685) 2023-06-06 17:38:12 +08:00
Billy Chan
d099669ad8
Cleanup ambiguous glob imports (#1692)
* Cleanup ambiguous glob imports

* fix
2023-06-06 15:00:05 +08:00
Vojtěch Jungmann
126f96b5c6
community: Add Portfolio to COMMUNITY.md (#1686) 2023-06-06 11:07:59 +08:00
Billy Chan
0c7e456251
CHANGELOG 2023-06-03 11:43:34 +08:00
Aditya Yadav
f6c9d81918
Moving clap to version 4 (#1468)
* Moving clap to vesion 4

* Moving the sea-orm-migration cli to clap v4

* Removing the deprecated flag from clapv4

* Upgrade clap to 4.3

* Fixup

* .

* Try compile [CLI]

---------

Co-authored-by: aadi58002 <aadi58002gmail.com>
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2023-06-03 11:41:59 +08:00
Chris Tsang
00c90b2d79 Changelog 2023-06-01 18:30:49 +08:00
Clément Guiton
3ccb9cdbf7
Feat: Expose ping method from SQLx (#1627)
* feat: add connection.ping method

* fmt

* impl `ConnectionTrait::ping` method for `SchemaManagerConnection`

* Mock connection should always be online

* remove needless clippy lint

* fmt

* Remove needless instrument

* Update src/driver/sqlx_sqlite.rs

* <feat>(Ping) removed ping() from ConnectionTrait

* removed ping from transaction

* removed unused imports

* Revert

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2023-06-01 18:21:38 +08:00
Joseph D
3343e2118b
Adding ruuth to COMMUNITY.md (#1681) 2023-06-01 18:11:08 +08:00
Billy Chan
0f50f55ce4
CHANGELOG 2023-05-29 20:39:44 +08:00
Billy Chan
33f3f9282d
feat: implement ColumnTypeTrait for ColumnDef (#1576) 2023-05-29 20:35:02 +08:00
df51d
0b15f4f5e2
change: rename core crate to service in examples (#1662)
* change: rename `core` crate to `service` in examples

* fix(jsonrpsee-example): broken dependency
2023-05-23 10:33:44 +08:00
Billy Chan
59e3ba8095
0.12.0-rc.2 2023-05-19 22:32:21 +08:00
Panagiotis Karatakis
3300336b1a
Expand SeaORM entity generator with Seaography related data (#1599)
* 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>
2023-05-19 22:14:46 +08:00
Billy Chan
fd6c303740
CHANGELOG 2023-05-18 16:54:15 +08:00
Billy Chan
44a94d65d2
Bump SeaQuery and SeaSchema to new latest RC version (#1661) 2023-05-18 16:51:13 +08:00
Billy Chan
b4eecf9cd8
Create release-bot.yml 2023-05-08 14:47:55 +08:00
Billy Chan
39d00ed8ac
CHANGELOG 2023-05-03 19:20:47 +08:00
Abdulqudduus Babalola
e872436547
feat: add support for space-separated migration names (#1570)
* feat: add ability to create space separated migration names

* fmt

* Trim whitespace

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2023-05-03 19:12:09 +08:00
Jared Mackey
9b3c81c281
Add example schema for #1582 (#1585) 2023-05-03 16:48:37 +08:00
Billy Chan
381e175847
Test CRUD on bit datatype (#1612) 2023-05-03 12:41:52 +08:00
Billy Chan
d514b511a4
Showcase how to define entity with dynamic table name (#1622) 2023-05-03 11:12:23 +08:00
Chris Tsang
692d3bd582 Changelog 2023-04-27 23:44:54 +08:00
Chris Tsang
905834a511 Changelog 2023-04-27 23:43:37 +08:00
Chris Tsang
cc22f479d3 Changelog 2023-04-27 23:40:25 +08:00
Chris Tsang
cd00ba371d Changelog 2023-04-27 23:34:55 +08:00
Chris Tsang
a6646cdd2d cargo fmt 2023-04-26 21:42:18 +08:00
Chris Tsang
9e5900e25b cargo fmt 2023-04-26 21:41:45 +08:00
Chris Tsang
2746271190 Changelog 2023-04-26 21:32:16 +08:00
Chris Tsang
28a5de09d6
Merge pull request #1615 from SeaQL/pulls/1597
Pulls/1597
2023-04-26 18:33:54 +08:00