2478 Commits

Author SHA1 Message Date
Dmitrii Aleksandrov
a73f699578
Cast enums in lt(), lte(), gt(), gte() (#2014)
* Cast enums in lt, lte, gt, gte (revert 10f3de0, discussed under #1527)

* Add tests for enum order comparisons
2024-01-12 22:42:29 +08:00
Chris Tsang
914ae2e166 Changelog 2024-01-12 11:16:48 +00:00
Anshul Sanghi
f019d6ab22
Add Ability To Configure SQLx Slow Statement Logging Settings (#2055)
* Add Ability To Configure SQLx Slow Statement Logging Settings

* Disable SQLX Slow Statement Logging By Default
2024-01-12 19:16:24 +08:00
Chris Tsang
358e31a09b Changelog 2024-01-10 16:25:43 +00:00
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
Shogo Nakano
3dc66aa17d
refactor: add clear_order_by for num_items (#2030) 2024-01-10 18:30:30 +08:00
藍+85CD
c3344347f7
Add hatsu to COMMUNITY.md (#2036)
* Add hatsu to COMMUNITY.md

* Update COMMUNITY.md
2023-12-31 08:08:41 +08:00
Chris Tsang
53ec0e1548 Community 2023-12-19 01:35:26 +00:00
Dotan J. Nahum
3af70f4aff
Community: add Loco.rs framework (#2026) 2023-12-19 19:37:53 +08:00
Chris Tsang
0ad6c2fb14 Readme 2023-12-16 19:44:32 +00:00
Chris Tsang
84a24bab01 Rename things 2023-12-14 21:13:04 +00:00
Chris Tsang
1554db5000 Fixup 2023-12-14 20:21:11 +00:00
Chris Tsang
e10dcd012f Revert "Fixup"
This reverts commit 8a29cba78a45fc6c7fa578dfb0163ec44a77de98.
2023-12-14 20:20:25 +00:00
Chris Tsang
8a29cba78a Fixup 2023-12-14 20:03:02 +00:00
Chris Tsang
91b6f79ba7 Changelog 2023-12-14 19:50:50 +00:00
Chris Tsang
b8ad6303d8 Fixup 2023-12-14 19:47:52 +00:00
Chris Tsang
4ecf47e087 update examples 2023-12-14 19:42:32 +00:00
Chris Tsang
4a59ca681b 0.12.10 2023-12-14 19:42:32 +00:00
Dmitrii Aleksandrov
1abc47b5f1
Cast enums in is_in and is_not_in (#1527) (#2002)
* Cast enums in `is_in` and `is_not_in` (#1527)

* Restore original tests, add tests for generated SQL
2023-12-15 03:41:05 +08:00
Chris Tsang
4b5fd9388e Cleanup feature flags 2023-12-14 17:06:51 +00:00
Chris Tsang
5859d261f1 Cleanup feature flags 2023-12-14 17:03:16 +00:00
Chris Tsang
b043f84aec Update example list 2023-12-14 16:43:35 +00:00
Billy Chan
b401851511
CI: whitelist examples runs 2023-12-14 20:03:30 +08:00
Chris Tsang
5539e7c5ad Stash proxy_surrealdb_example for now 2023-12-14 01:10:13 +00:00
Chris Tsang
955bbcbc12
Database Proxy (#2000)
* feat: Add proxy connection type

* feat: Add proxy database's proxy functions trait.

* fix: Remove some unused impl to fix the unit test

* test: Create the proxy by empty declaration.

* test: Try to genereate query and exec commands.

* perf: Add more query debug trait for debugging.

* chore: Add the example for wasi + proxy.

* chore: Try to read string from wasmtime vm.

* chore: Sucks, but how to do without tokio::spawn?

* chore: Complete the basic memory read logic.

* chore: Abandon the WASI demo, native demo first...

* refactor: Use single proxy connection generator
to avoid stack overflow

* refactor: Rename the inner structs' name

* fix: Fix CI clippy and unit test

* fix: Rename the example.

* chore: Try to embed surrealdb for proxy test.

* fix: Transfer the query result correctly.

* refactor: Rename the example.

* chore: Ready to add example for wasmtime proxy.

* feat: Try to compile sea-orm into wasm binary.
But it would failed on wasm32-wasi target because of the socket deps.
It can be compiled on wasm32-unknown-unknown target.

* fix: WASM targets can't use sqlx.

* fix: Try to fix CI by remove toml.

* fix: Try to fix CI by remove toml.

* fix: Move vm to the example's root dir.

* fix: Add a pre-build script.

* chore: Add README.

* fix: Try to fix CI.

* feat: Add proxy logic in wasm module.

* fix: Try to run the wasi module.
But WASI cannot support multi threads..
so the module was run failed.

* refactor: Bump wasmtime to 14.

* fix: Now we can use async traits on wasmtime.
The solution is add the current thread tag to tokio-wasi.

* build: Use build.rs instead of dynamic command.

* feat: Add the execute result's transfer logic.

* fix: Convert sqlx query result for sea-query.

* fix: Now we can transfer wasm's query to outside.

* refactor: Convert to ProxyRow first.
It's the solution to know the type information about the value.

* fix: Multiple time library reference.

* feat: Add a new proxy example which uses GlueSQL.

* test: Add the test cases for three new examples.
Just try to run once...

* ci: Add wasm component's compiler for unit test.

* ci: Add wasi target.

* ci: It may needs wasi target twice...

* feat: Add more keys for proxy execute result.
To transfer the fully information of the execute result.

* fix: Use custom id type instead of json value.

* fix: Wrong reference type.

* fix: Rewrite the transformer.

* perf: Add ToString trait for proxy exec result.

* revert: Again.
Refs: 9bac6e91ca9df04ccd8368906e1613cfc5b96218

* revert: Back to the basic proxy exec result.
Refs: e0330dde73a54d461d5f38c69eec5e13bcc928d4

* refactor: Update GlueSQL and SurrealDB examples. (#1980)

* refactor: Bump gluesql to 0.15
Relate to https://github.com/gluesql/gluesql/issues/1438

* Use SQLParser to parse and replace placeholders.

* Use SQLParser for surrealdb demo.

* Transform the query by SQLParser.

* Tweaks

* Remove wasmtime example. (#2001)

* ci: Add additional targets.

* Remove proxy wasmtime example.

* Format

---------

Co-authored-by: 伊欧 <langyo.china@gmail.com>
Co-authored-by: 伊欧 <m13776491897@163.com>
2023-12-14 19:40:55 +08:00
Chris Tsang
d4f8e7226e Revert sea-orm-codegen 2023-12-14 10:44:31 +00:00
94eac96513
create_table_from_entity support comment (#2009)
* support table and column comment

* create_table_from_entity support comment

* fmt code

* fmt code

* add comment test

* fix test
2023-12-14 18:22:36 +08:00
Chris Tsang
544675f24c Changelog 2023-12-08 14:19:29 +00:00
Chris Tsang
c9a2528546 Revert "sea-orm-cli migrate init: don't overwrite files by default (#1829)"
This seems to be a breaking change may be we should apply later
2023-12-08 14:16:26 +00:00
Bouke van der Bijl
a1396f3679
Add source annotations to errors (#1999) 2023-12-08 21:50:57 +08:00
chayleaf
3d6124393a
sea-orm-cli migrate init: don't overwrite files by default (#1829) 2023-12-08 21:32:25 +08:00
Chris Tsang
bb1fff654f Bump sea-query #1996 2023-12-08 13:16:40 +00:00
Chris Tsang
d763ec08c8 Changelog 2023-12-04 11:27:23 +00:00
Chris Tsang
e4c31da34f 0.12.8 2023-12-04 11:20:40 +00:00
Chris Tsang
2eb3d8e465 Cherry pick tests from #1679 2023-12-01 11:29:05 +00:00
Chris Tsang
285c0b2f4d Notes 2023-12-01 10:38:57 +00:00
Chris Tsang
8210428674 Implement StatementBuilder for sea_query::WithQuery #1960 2023-12-01 10:16:22 +00:00
Chris Tsang
5db05c8251
Update bug-report.md 2023-12-01 10:07:16 +00:00
Chris Tsang
d0a162acfe
Delete .github/ISSUE_TEMPLATE/feature-request.md 2023-12-01 10:04:51 +00:00
Chris Tsang
c7510df009
Update config.yml 2023-12-01 10:03:29 +00:00
Chris Tsang
1f8707af64
Update config.yml 2023-12-01 09:59:10 +00:00
Chris Tsang
5b182509a3
Update CHANGELOG.md 2023-11-28 02:38:07 +08:00
ttys3
3ff4f11cb7
upgrade to Axum 0.7 (#1984)
* refactor: upgrade to axum 0.7

* refactor: upgrade to axum 0.7
2023-11-28 02:28:49 +08:00
Chris Tsang
09a1983a0a 0.12.7 2023-11-22 22:46:26 +00:00
Chris Tsang
f87c6329d2 0.12.7 2023-11-22 22:39:49 +00:00
Chris Tsang
d471c4e022 Change method signature of expr_as to accept self #1979 2023-11-22 22:32:34 +00:00
Chris Tsang
8aa49beb6d update examples 2023-11-13 09:03:26 +00:00
Chris Tsang
1ce3778c61 0.12.6 2023-11-13 09:03:26 +00:00
Chris Tsang
5d677a401b update examples 2023-11-12 20:14:30 +00:00
Chris Tsang
070a30aab1 0.12.5 2023-11-12 20:14:29 +00:00