264 Commits

Author SHA1 Message Date
Billy Chan
afdf9bba0d
1.1.2 2024-12-02 14:55:33 +08:00
Chris Tsang
2eb398efa9 Bump rust version 2024-12-01 13:20:37 +00:00
Chris Tsang
4a0fbcc43d 1.1.1 2024-11-04 01:01:05 +00:00
Billy Chan
9efc0522d6
Bump sea-query 2024-10-17 15:20:44 +08:00
Billy Chan
0c5668dcd8
1.1.0 2024-10-15 14:35:37 +08:00
Billy Chan
fecc43196e
1.1.0-rc.3 2024-10-15 14:34:33 +08:00
Billy Chan
c64f48d85f
1.1.0-rc.2 2024-10-04 17:44:26 +08:00
ethan
e13b23c884
Update sqlx version to 0.8.2 (#2371)
* Update sqlx version to 0.8.2 due to vulnerability disclosure.

* sqlx 0.8.2

* CHANGELOG

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2024-10-04 16:50:34 +08:00
James Lucas
ed77b64d88
Update ouroboros (#2353)
* Update `ouroboros`

0.17.x has a dependency on `proc-macro-error`, which is unmaintained
per https://rustsec.org/advisories/RUSTSEC-2024-0370

* CHANGELOG

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2024-10-04 16:42:41 +08:00
Billy Chan
9d5e3eed79
1.1.0-rc.1 2024-08-09 18:33:10 +08:00
Billy Chan
563562d325
Bump SQLx to 0.8 (#2305)
* Bump SQLx to 0.8

* Bump bigdecimal to 0.4

* Bump sea-query

* Bump sea-schema

* Fix clippy warnings

* Patch for examples

* Fix: enable serde feature on dependent crates

* `TryGetable` for MySQL String

* Fix pi_tests

* Fix uuid_tests

* Handle MySQL into_json

* examples CI

* Fix

* Drop Git override

* Bump to RC version

* revert
2024-08-09 18:32:14 +08:00
Billy Chan
507c1fd732
Cleanup runtime features 2024-08-02 17:21:57 +08:00
Billy Chan
5a932afb33
Cleanup runtime features 2024-08-02 17:21:18 +08:00
Billy Chan
6f0cf6283a
Bump SeaQL crates 2024-08-02 17:14:24 +08:00
Billy Chan
4587d36e6f
1.0.0 2024-08-02 17:08:28 +08:00
Billy Chan
dbf475bf9d
1.0.0-rc.7 2024-06-25 11:50:11 +08:00
Jubilee
64ca6690b0
Fix doc build (#2267)
* Demand time 0.3.35

Fixes docs builds

* Check in Cargo.lock

See the T-cargo change in guidance:
- https://blog.rust-lang.org/2023/08/29/committing-lockfiles.html

* Bump dependency

* Revert gitignore

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2024-06-25 11:47:13 +08:00
Billy Chan
7d537748b7
Bump dependency 2024-06-25 10:45:18 +08:00
Billy Chan
3758f0c51d
1.0.0-rc.6 2024-06-19 20:41:58 +08:00
Chris Tsang
987cb38aaf 1.0.0-rc.5 2024-05-29 13:46:38 +01:00
Billy Chan
0798bf2037
1.0.0-rc.4 2024-05-03 16:07:49 +08:00
Billy Chan
36a151bba7
Added ColumnType::Blob (#2213)
* Added `ColumnType::Blob`

* Fix

* Fix

* Use latest rc versions

* bump sea-query & sea-schema

* fix loco examples

* fix loco examples

* revert
2024-05-03 16:07:36 +08:00
Chris Tsang
7fdeb8a4be Bump sea-query 2024-04-14 23:05:20 +01:00
Danny de Jong
e34f09d362
Set runtime features for sqlx. (#2171)
* Set runtime features for sqlx.

* Apply suggestions from code review

---------

Co-authored-by: Danny de Jong <ddejong@therp.nl>
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2024-03-29 19:20:41 +00:00
Billy Chan
cdf216ccb1
1.0.0-rc.3 2024-03-27 00:17:41 +08:00
Chris Tsang
65de9f929c 1.0.0-rc.2 2024-03-15 23:31:56 +00:00
Wyatt Herkamp
0adcd3b36c
Update Strum (#2088)
* Update Strum

* Change log update

* Fetch updates from upstream Strum

* build-tools/update-strum-macros.sh

* Revert "Fetch updates from upstream Strum"

This reverts commit 32cf8f7ac96f9b0431d2bde682b69ec44b4f5b2e.

* Update enum_iter.rs

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2024-02-06 18:33:20 +08:00
Billy Chan
42553b6624
1.0.0-rc.1 2024-02-06 14:14:09 +08:00
Billy Chan
cef380b977
SQLite type mappings (#2077)
* sqlite: deps

* sqlite: update data type mappings

* sqlite: decimal test cases

* sqlite: try negative numbers

* fixup

* fixup

* fmt

* clippy

* fixup

* fixup

* fixup

* refactor

* fix

* Drop the use of `rust_decimal_macros` (#2078)

* sqlite: decimal -> real

* revert

* Bump dependencies

* Fixup

* Fixup

* Fixup

* Fixup

* Refactor

* Refactor

* Refactor
2024-02-05 14:42:55 +08:00
Andrea Corradi
c56c072f27
Enable sqlite returning with feature flag (#2070)
* Enable sqlite returning with feature flag

* Add runtime check for sqlite version

* Apply suggestions from code review

* Fix clippy

* Rename feature

* Fix tests when feature flag is not enabled

---------

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2024-01-26 04:28:59 +08:00
Billy Chan
9797da1ee4
Drop the use of rust_decimal_macros (#2078) 2024-01-24 17:58:50 +08:00
Chris Tsang
70d4278598 0.12.12 2024-01-22 09:48:29 +00:00
Chris Tsang
260b8a4076 0.12.11 2024-01-14 16:10:33 +00:00
Chris Tsang
4a59ca681b 0.12.10 2023-12-14 19:42:32 +00:00
Chris Tsang
5859d261f1 Cleanup feature flags 2023-12-14 17:03:16 +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
bb1fff654f Bump sea-query #1996 2023-12-08 13:16:40 +00:00
Chris Tsang
e4c31da34f 0.12.8 2023-12-04 11:20:40 +00:00
Chris Tsang
285c0b2f4d Notes 2023-12-01 10:38:57 +00:00
Chris Tsang
f87c6329d2 0.12.7 2023-11-22 22:39:49 +00:00
Chris Tsang
1ce3778c61 0.12.6 2023-11-13 09:03:26 +00:00
Chris Tsang
070a30aab1 0.12.5 2023-11-12 20:14:29 +00:00
Chris Tsang
240620176c 0.12.4 2023-10-19 19:28:46 +01:00
chris
bd9a0e9b7e New json-array feature flag 2023-10-16 11:26:13 +01:00
Chris Tsang
17c943d84e
Loader: use ValueTuple as hash key (#1868) 2023-09-24 23:03:14 +08:00
Chris Tsang
f9db14c686 0.12.3 2023-09-22 18:13:25 +01:00
Billy Chan
f6b94c3a7a
Bump chrono to 0.4.30 (#1858)
* Bump `chrono` to 0.4.30

* Fix test cases
2023-09-13 23:03:57 +08:00
Chris Tsang
71afa56569 Bump sea-query 2023-08-25 21:46:20 +01:00
Chris Tsang
242237aa51 0.12.2 2023-08-04 20:44:05 +01:00
Chris Tsang
1e6b10b532 0.12.1 2023-07-27 15:01:42 +01:00