254 Commits

Author SHA1 Message Date
Billy Chan
43495de0aa
Fix clippy warnings - 1 (#967)
* Fix clippy warnings

* cargo fmt

* Fix clippy warnings

* cargo fmt
2022-08-12 20:02:53 +08:00
kyoto7250
9f3039407a
update async-graphql-axum (#939) 2022-08-08 16:06:06 +08:00
kyoto7250
dd545441d3
introduce rustfmt (#919)
* introduce rustfmt

* Cargofmt on all sea-orm crates & examples

* Revert testing script

* cargo fmt --manifest-path sea-orm-rocket/Cargo.toml --all

* add a script for formatting

* add nightly component for formatting

* set timeout and manual nightly install  in github action

* add flag for manifest-path

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-08-01 18:30:43 +08:00
Fergus
b6739915b7
Add salvo example (#908)
* Add salvo example

* cargo clippy

* bug fix
2022-07-26 14:47:12 +08:00
Chris Tsang
469770444c update examples 2022-07-22 00:14:28 +08:00
Billy Chan
50f42075ab
Update deployment script to update example automatically (#865)
* Update deployment script

* update examples

* Split deployment scripts

* Fixup

* Typo
2022-07-12 12:02:24 +08:00
Billy Chan
1054d6451c
Use file!() macro to avoid manually defining the name of migration (#736)
* Add `DeriveMigrationName`

* CLI migrate generate without replacing migration name

* Update migrations

* Fixup
2022-06-29 00:42:59 +08:00
XiaoQu
987c6b55fd
fix #817 add 404 handle for actix 4 example & update readme for (#818)
* feat: add global 404 page

* docs: add cargo-watch install on README file
2022-06-26 15:35:22 +08:00
Billy Chan
8faabf4076
examples: Fix table identifier (#812) 2022-06-22 16:21:23 +08:00
Chris Tsang
4301383b40 Tweaks 2022-06-12 22:30:34 +08:00
Billy Chan
9b41f1c1b1
Migration shouldn't depends on symbol provided by entity crate (#785)
* Migration shouldn't depends on symbol provided by entity crate

* Add docs
2022-06-12 22:25:32 +08:00
Billy Chan
183639dc8c
Migration without depending on async-std (#758)
* Migration without depending on async-std runtime

* Update examples

* Fixup
2022-05-23 23:24:07 +08:00
Billy Chan
c3db8f4b65
Examples: entity & application crate depends on SeaORM with minimum required features enabled (#723) 2022-05-14 13:24:39 +08:00
Billy Chan
9d2cae44b3
Migrator CLI Fixup (#708)
* CI compile migrator CLI

* sea-orm-migration's CLI with only migration subcommand

* Fix clippy warnings

* Fixup

* `sea-orm-cli migrate init`: write sea-orm-migration version based on CLI version
2022-05-10 23:24:23 +08:00
Billy Chan
cdd6c29845
Fixup 2022-05-10 12:06:49 +08:00
Chris Tsang
30e7f42233
Merge pull request #703 from ttys3/axum_example_v0.5.4
chore: update axum to 0.5.4 and fix up .env database name typo
2022-05-09 21:15:20 +08:00
Billy Chan
498c0154ca Restructure SeaORM migration
Bump codegen's sea-query version [cli]

Update CLI subcommand method

Move migration utility into sea-orm-migration
2022-05-09 12:30:55 +08:00
ttyS3
4b9eeec739
chore: update axum to 0.5.4 and fix up .env database name typo 2022-05-09 03:18:51 +08:00
Billy Chan
738f73c4bc
Fix GraphQL example build errors 2022-04-11 11:05:10 +08:00
Billy Chan
904700cf56
Update examples 2022-04-06 19:39:42 +08:00
Billy Chan
40c4756fdb
Tonic example fixup 2022-04-06 11:53:54 +08:00
Chris Tsang
31edb2c409 Rename 2022-04-05 21:23:55 +08:00
Giri Priyadarshan
17a3ad9620
tonic gRPC example (#659)
* tonic gRPC example

* minor change to client output

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-04-05 20:35:33 +08:00
Chris Tsang
6175166c79 Add jsonrpsee to example list 2022-04-03 22:16:05 +08:00
Chris Tsang
a59b7aeae2 Tweaks 2022-04-03 22:12:49 +08:00
Chris Tsang
311a14a470 Rename example 2022-04-03 22:12:48 +08:00
Cobalt
6a22207944
chore: Upgrade to Actix Web 4 (#638)
* chore: Upgrade to actix-web 4

* fix: Update example names for CI tests
2022-04-02 22:00:49 +08:00
Billy Chan
0d473444ba
Update examples dependencies 2022-03-27 17:41:27 +08:00
Mike
290d2c5172
add example for integrate with jsonrpsee (#632)
* add example for integrate with jsonrpsee

* Update CI
2022-03-26 17:40:06 +08:00
Aaron Leopold
7ba6144ead
Added axum graphql example (#587)
* added example for axum + graphql

* clean up

* removed macos file

* Pr/587 (#1)

* Migrate on startup

* Update CI

* Add .gitignore

* Add README

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-03-16 18:16:19 +08:00
Billy Chan
f418c4e580
Examples with migration (#509)
* Update examples sea-orm version

* Update example sea-schema version

* Update [cli] sea-schema version

* Fix [cli] cargo publish failed

* Update CHANGELOG

* Edit rocket example

* Poem example with migration

* Axum example with migration

* Refactoring

* Actix4 example with migration

* Actix example with migration

* Use sea_schema::migration::prelude
2022-02-09 11:45:04 +08:00
Chris Tsang
e9a460b47d Fix build error 2022-02-07 21:40:05 +08:00
Chris Tsang
54b1f4a226 Use caret requirements 2022-02-07 21:32:35 +08:00
Chris Tsang
ea0342af06 use sea_schema::migration::prelude 2022-02-07 21:28:06 +08:00
Chris Tsang
f8ab11d36a Use sea-schema 0.5.1 2022-02-07 21:27:22 +08:00
Billy Chan
cd98137ad0 Update examples sea-orm version
Update example sea-schema version

Update [cli] sea-schema version
2022-02-07 20:55:15 +08:00
Chris Tsang
09e2ac841a Fix sea-orm dependency 2022-02-06 00:07:18 +08:00
Chris Tsang
3cde517d2a Fix sea-schema dependency 2022-02-05 20:58:22 +08:00
Billy Chan
8eb095385d Migration (#335)
* Refactor `ConnectionTrait`

* Refactoring

* Build index & foreign key statements

* Fix imports

* Fixup

* Rocket example with migration

* async-std compatible with the tokio 1.0 runtime

* Use reexported dependency

* Compile without selecting any db backend

* Updating sea-orm-cli dep

* sea-orm-cli migrate commands

* cargo fmt

* Test [cli]

* Refactoring

* Clap app name should be "sea-orm-cli"

* Correctly capture MIGRATION_DIR

* Rename README

* Add `sea-orm-cli migrate init` command

* Update README

* Try restructured sea-query dependency (SeaQL/sea-schema#41)

* Set `DATABASE_URL` environment variable
2022-02-05 20:34:54 +08:00
Sunli
211029356c Add Poem example 2022-01-13 12:24:42 +08:00
Chris Tsang
82bad4a376 0.5.0 2022-01-01 16:05:36 +08:00
Billy Chan
aa7254179f
Prepare for 0.5.0-rc.1 (#404)
* docs: edit changelog

* test: update examples' sea-orm version

* docs: edit changelog
2021-12-31 00:41:47 +08:00
Chris Tsang
d5c9c65079 Revert save to return Self 2021-12-26 00:13:56 +08:00
Billy Chan
2d5aa2a61b
Log with tracing-subscriber (#399)
* chore: log examples with tracing-subscriber

* chore: log [issues] with tracing-subscriber

* chore: log [cli] with tracing-subscriber

* feat: tracing will emit log if tracing-subscriber is not setup
2021-12-24 23:59:37 +08:00
Billy Chan
adfb9ead54
Rework ActiveValue (#340)
* WIP

* Fixup

* Fixup

* Update docs & rename `unset`

* Deprecate `Unset()` and reexport `ActiveValue::NotSet`

* Docs

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2021-12-19 02:22:30 +08:00
Billy Chan
5104cd3573
Insert & Update Return Model (#339)
* Update insert & update API

* Update test cases

* Update README

* Fix clippy warnings

* Fixup

* Fixup
2021-12-18 14:30:10 +08:00
Chris Tsang
67a601ecca
Merge pull request #384 from Gabriel-Paulucci/master
Fix rocket version
2021-12-15 13:53:30 +08:00
Billy Chan
b2549576bc
Fix rocket_example 2021-12-15 12:25:12 +08:00
荒野無燈
951e678da5
refactor: update to Axum v0.4.2
Refs: https://github.com/tokio-rs/axum/blob/main/axum/CHANGELOG.md#042-06-december-2021
2021-12-15 02:59:17 +08:00
Billy Chan
d3acf4b156
Update tower-cookies dependency 2021-12-03 18:10:26 +08:00