* 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>
* 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>
* WIP, implementing Iden
* completed implementation for DeriveIden and added basic test cases
* added feature flag to prevent sea-orm::sea-query::DeriveIden from crashing when sea-query is not used
* fixed doc test and adjusted test case
* enable `sea-query-derive`'s `sea-orm` feature
* Bump `sea-query-derive` to v0.4
* Update Cargo.toml
* Update Cargo.toml
* adjusted test cases and updated so that iden attribute will not be snake cased
* Update Cargo.toml
* Update main.rs
---------
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>
* Upgrade `tracing-subscriber` dependency to 0.3.17
* Revert "fix: `regex` dep should enable `unicode` feature (#1605)"
This reverts commit 41d9a853342155e0b7df4afb15990225b1c8a981.
* Update heck dependency
* Fix formatter error
* Drop the use of `sea-strum` and depends on the original `strum` with a tailored `EnumIter` provided
* fmt
* Depends on `strum` 0.23
* Depends on `strum` 0.24
* Source code adapted from https://github.com/Peternator7/strum
* Update LICENSE
---------
Co-authored-by: Sergei Ivankov <sergeiivankov@pm.me>
Co-authored-by: Sergei Ivankov <96142843+sergeiivankov@users.noreply.github.com>
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
* Noop when update without providing any values
* Add tests
* Update Cargo.toml
* Bump SeaQuery's version
* Fixup
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>