27 Commits

Author SHA1 Message Date
Chris Tsang
f54683d365
Refactor/fix clippy errors (#2056) (#2057)
* chore: add clippy config file

* refactor: fix clippy errors and wornings of runtime-async-std-native-tls,sqlx-all

* refactor: fix clippy errors and wornings of sqlx-sqlite, sqlx-mysql, sqlx-postgres

* chore: format

* refactor: fix clippy

* fix: import path

* refactor: fix clippy errors and wornings of sqlx-sqlite, sqlx-mysql, sqlx-postgres

* fix: revert some space and comma removal

* fix: revert some space and comma removal

* refactor: add feature flag

* fix: import path

* test: remove mismatch feature flag

* test: remove mismatch feature flag

* chore: add proper feature flag

* chore: remove feature flag

* refactor: remove clippy.toml file

* fix: re-export driver

* fix: re-export JoinType

* fix: remove feature flag

* chore: add #[allow(unused_imports)] for driver

Co-authored-by: Shogo Nakano <61229807+shogo-nakano-desu@users.noreply.github.com>
2024-01-11 00:21:22 +08:00
darkmmon
50a7048deb Adding find_with_linked (#1728) 2023-07-07 22:19:45 +08:00
Billy Chan
737a894e27
Upgrade sea-query to 0.29 (#1562)
* Upgrade `sea-query` to 0.29

* clippy

* More upgrades

* fixup
2023-03-22 17:24:42 +08:00
Billy Chan
e9df3aa01d
Casting columns as a different data type on select, insert and update (#1304)
* Cast select and value

* Refactoring

* Test casting Postgres citext

* Fixup

* Revert

* Add test cases

* Fixup

* Rename methods
2023-01-12 14:56:11 +08:00
Billy Chan
a80c33ef4c
Rewrite enum and text casting (#973)
* Rewrite enum and text casting

* Add doc tests

* Refactoring
2022-09-05 00:38:12 +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
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
Charles Chege
52f38a10ea Support the use of chrono::DateTime<Utc> in sea-orm
Add documentation for this

Temporarily use a fork to include new Sea-query code

Add tests for DateTimeUtc

Solve Github actions error by add the code to create a table

Assertion accuracy tests

Rectify incorrect format
2022-02-01 14:27:33 +08:00
Billy Chan
0f164b62d5
Fix related & linked with enum columns (#376)
* Fix related & linked with enum columns

* Add test cases
2021-12-10 23:41:43 +08:00
Charles Chege
a9b6f8cc83 Documetation for the query module 2021-10-29 10:38:30 +03:00
Billy Chan
01eff84ce8 Join with table alias 2021-10-15 22:28:39 +08:00
Billy Chan
541b94f15d
Update query helper column_as 2021-09-03 11:23:29 +08:00
Chris Tsang
9334d4ff5d DbBackend alias 2021-07-17 22:03:41 +08:00
Billy Chan
e83cc63e3a Replacing Syntax & *BuilderBackend with DatabaseBackend 2021-07-16 00:28:03 +08:00
Billy Chan
56fd77eddf Build query with syntax 2021-07-16 00:28:03 +08:00
Chris Tsang
a0db19758b SelectTwoMany 2021-06-27 03:39:09 +08:00
Billy Chan
19c0b0c35d Select to many 2021-06-26 22:55:30 +08:00
Chris Tsang
c70c941712 Refactor Insert one & many 2021-06-10 01:47:45 +08:00
Chris Tsang
00cad59a0e Update Many 2021-06-10 00:07:35 +08:00
Chris Tsang
f26e95c9e3 Use SeaRc 2021-06-07 21:20:23 +08:00
Chris Tsang
2fc4520ee8 Refactor Query as traits 2021-06-02 00:36:06 +08:00
Chris Tsang
c45a4bb376 impl QueryTrait for Select 2021-06-01 18:20:05 +08:00
Chris Tsang
8a1329a7b5 SelectHelper 2021-06-01 17:31:32 +08:00
Chris Tsang
e216974fa3 sea_query IntoCondition 2021-05-25 22:53:35 +08:00
Chris Tsang
a016cdeeda filter accepts Condition 2021-05-24 22:07:02 +08:00
Chris Tsang
4a9fa29e2d Docs 2021-05-15 15:09:50 +08:00
Chris Tsang
abc11753a8 Select Both 2021-05-15 15:02:54 +08:00