354 Commits

Author SHA1 Message Date
伊欧
85fc3d0440
feat: Add support for async proxy connection. (#2278)
* Try to attach async to proxy trait first.

* Update proxy connection to support async.

* Add example.

* Try to fix CI.

* Remove CI for cloudflare worker example at this moment...

* Improve SQL serializer
2024-08-20 10:15:48 +01:00
Billy Chan
64e8b528b1
Update examples/react_admin 2024-08-20 12:56:34 +08:00
Billy Chan
368b1126f7
Fix examples CI 2024-08-12 12:39:48 +08:00
Billy Chan
b0a7ceb4d1
Fix examples 2024-08-09 23:31:41 +08:00
Billy Chan
bf65bfd205
Fix examples 2024-08-09 22:22:51 +08:00
Billy Chan
eb4ce3a0f4
update examples 2024-08-09 18:33:11 +08:00
Billy Chan
c43e15e2cd
Update README.md 2024-08-09 11:16:54 +08:00
Billy Chan
c2fc62a903
GraphQL based Admin Dashboard with Loco and Seaography (#2297)
* backend

* frontend

* frontend

* README

* CI

* fmt

* docs

* edit

* rename

* Bump seaography to 1.0

* Cargo.lock
2024-08-09 11:13:45 +08:00
Billy Chan
2c70ad10be
update examples 2024-08-02 17:08:29 +08:00
Billy Chan
eafaeb4d4d
edit 2024-07-24 11:48:23 +08:00
Billy Chan
9fd5523d65
Examples: Loco x Seaography (#2270)
* Examples: Loco x Seaography

* fmt

* Edit
2024-06-26 14:50:00 +08:00
Billy Chan
d87f586bbf
update examples 2024-06-25 11:50:11 +08:00
Billy Chan
17b2f6e98e
update examples 2024-06-19 20:41:59 +08:00
Chris Tsang
ac6c85f719 update examples 2024-05-29 13:46:38 +01:00
Billy Chan
f3ff417ec4
Loco Starter Example async fs 2024-05-29 17:26:51 +08:00
Billy Chan
a2f8f68d93
Update dependency 2024-05-28 15:54:28 +08:00
Billy Chan
387d47b105
Remove unused configs 2024-05-28 15:40:38 +08:00
Billy Chan
2d6b67c04c
cleanup 2024-05-28 15:18:57 +08:00
Billy Chan
b63223d78d
Getting Started with Loco & SeaORM (#2230)
* Getting Started with Loco & SeaORM

* README

* edit

* README
2024-05-28 15:06:53 +08:00
Billy Chan
4693fc125b
update examples 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
Billy Chan
8687407257
seaography examples 2024-05-02 14:13:40 +08:00
Billy Chan
145bfa02a9
Fix graphql example 2024-04-08 19:00:38 +08:00
Billy Chan
6b52288fcc
update examples 2024-03-27 00:17:42 +08:00
Chris Tsang
5c8bca02cd update examples 2024-03-15 23:31:57 +00:00
Billy Chan
b866236704
examples: deprecate actix3_example (#2154) 2024-03-13 13:46:53 +08:00
Mateusz Maćkowski
b1f0a81672
Bring back rocket_okapi support (#2136) 2024-03-10 23:51:01 +00:00
ikka0426
763a3f9aa1
actix example bug fix (#2140)
* bug fix

* fmt

---------

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2024-03-10 23:42:07 +00:00
Billy Chan
b775027fee
Explicit StringLen on ColumnType::String (#2123) 2024-03-05 15:31:58 +08:00
Billy Chan
3e149db180
examples: bump loco-rs to v0.2 (#2102) 2024-02-06 16:26:15 +08:00
Billy Chan
f7f914e198
update examples 2024-02-06 14:14:10 +08:00
Billy Chan
94403b5659
migration: schema helper (#2099)
* Adapted loco-rs/schema.rs

* avoid `&mut ColumnDef` after upgraded to sea-query 0.31.0

* refactoring

* rewrite schema.rs

* revert

* fmt

* fix

* loco_example: pin loco-rs version

* refactor
2024-02-06 14:10:36 +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
Billy Chan
7f25da3e2b
example: loco-todo-list (#2092)
* example: loco-todo-list

* fmt

* Cargo.lock

* Disabled integration test for GitHub CI

* fmt

* Update Cargo.toml
2024-02-05 14:35:37 +08:00
Chris Tsang
b5804551eb update examples 2024-01-22 09:48:29 +00:00
Chris Tsang
f16bac9a9f Edit 2024-01-21 17:17:17 +00:00
Chris Tsang
9b53db99c3 Edit 2024-01-21 17:17:09 +00:00
Chris Tsang
c2e6e54a50 Update Rocket 2024-01-21 16:17:23 +00:00
Chris Tsang
ca6f381d28 update examples 2024-01-14 16:10:33 +00:00
Chris Tsang
4ecf47e087 update examples 2023-12-14 19:42:32 +00: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
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
8aa49beb6d update examples 2023-11-13 09:03:26 +00:00
Chris Tsang
5d677a401b update examples 2023-11-12 20:14:30 +00:00
Chris Tsang
418c18ac0a Update sea-orm-rocket-example 2023-11-06 12:38:01 +00:00
Wyatt Herkamp
8b8b2ae391
Update Rocket (#1959) 2023-11-06 19:04:18 +08:00
Chris Tsang
e9acabd847 Fixup 2023-10-19 19:51:22 +01:00
Chris Tsang
3796ce40ad update examples 2023-10-19 19:28:46 +01:00
Chris Tsang
619b773ea2 Fixup 2023-10-19 19:27:39 +01:00