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
|
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 |
|
Billy Chan
|
b2549576bc
|
Fix rocket_example
|
2021-12-15 12:25:12 +08:00 |
|
Billy Chan
|
ac804a1642
|
Imports PaginatorTrait by default making it backward compatible
|
2021-11-10 15:26:29 +08:00 |
|
jasper
|
4b11a10680
|
Update examples and test
|
2021-11-09 22:29:48 +08:00 |
|
Chris Tsang
|
47f31fb27d
|
Edit Rocket example
|
2021-10-13 19:19:23 +08:00 |
|
Chris Tsang
|
608a49292f
|
Example of using a transaction
|
2021-10-13 16:51:12 +08:00 |
|
Chris Tsang
|
1d6e6066cd
|
Allow disable SQLx logging
|
2021-10-13 16:41:51 +08:00 |
|
Chris Tsang
|
bf595ca926
|
Use Figment config from Rocket
|
2021-10-13 15:54:49 +08:00 |
|
Chris Tsang
|
8feca6be7b
|
Edit
|
2021-10-12 12:21:17 +08:00 |
|
Chris Tsang
|
4a1b8fabc5
|
Rework Rocket Db Pool
|
2021-10-12 03:10:33 +08:00 |
|
Chris Tsang
|
e7b822c65d
|
cargo fmt
|
2021-10-04 11:44:02 +08:00 |
|
Marco Napetti
|
02ebc9745c
|
Transaction 3
|
2021-10-04 11:39:16 +08:00 |
|
Chris Tsang
|
aeea07c8ba
|
Rocket example to use the clone interface
|
2021-09-22 16:59:21 +08:00 |
|
Chris Tsang
|
c80621916a
|
Fix conflict
|
2021-09-21 22:00:02 +08:00 |
|
Chris Tsang
|
aec111e035
|
Tweaks
|
2021-09-21 18:32:54 +08:00 |
|
Sam Samai
|
fac33f4019
|
Merge branch 'master' into ss/actix-example
|
2021-09-21 18:22:31 +10:00 |
|
Billy Chan
|
bb225b12ee
|
Rocket example page number starts from one
|
2021-09-20 18:30:31 +08:00 |
|
Billy Chan
|
ce35317daf
|
Refactor rocket example
|
2021-09-20 18:30:31 +08:00 |
|
Sam Samai
|
54edd87706
|
Merge branch 'master' into ss/actix-example
|
2021-09-19 21:43:10 +10:00 |
|
Chris Tsang
|
77bc11e1e5
|
Use compact entity format for Rocket example
|
2021-09-18 03:10:07 +08:00 |
|
Sam Samai
|
1a4392dd0b
|
Merge branch 'master' into ss/actix-example
|
2021-09-17 20:17:54 +10:00 |
|
Sam Samai
|
f97c081c2a
|
Add new post
|
2021-09-12 17:12:20 +10:00 |
|
Chris Tsang
|
236bc56f03
|
Persist posts_per_page across pages
|
2021-09-11 15:45:05 +08:00 |
|
Sam Samai
|
918ce056bc
|
Add optional posts_per_page query string
|
2021-09-11 16:14:25 +10:00 |
|
Chris Tsang
|
f96c8ed49b
|
cargo fmt
|
2021-09-10 22:02:35 +08:00 |
|
Sam Samai
|
81c1bf0704
|
ROWS_PER_PAGE const
|
2021-09-10 21:32:26 +10:00 |
|
Sam Samai
|
66e9be195c
|
Add pagination to the rocket example
|
2021-09-10 21:26:18 +10:00 |
|
Chris Tsang
|
4a701d5e2d
|
Tweak rocket example
|
2021-09-06 23:28:56 +08:00 |
|
Billy Chan
|
691221e714
|
Hotfix - rocket_example
|
2021-09-06 22:30:51 +08:00 |
|
Chris Tsang
|
27c73401ca
|
Tweak rocket example
|
2021-09-06 10:54:53 +08:00 |
|
Chris Tsang
|
60fdc78766
|
Move RocketDbPool
|
2021-09-03 23:12:49 +08:00 |
|
Sam Samai
|
4cb5bf962b
|
Add ValueType
|
2021-09-03 22:41:02 +10:00 |
|
Sam Samai
|
71926cfd4b
|
Merge branch 'master' into ss/rocket-example
# Conflicts:
# Cargo.toml
|
2021-09-03 22:33:16 +10:00 |
|
Sam Samai
|
3f41f92690
|
Order posts by id
|
2021-09-03 22:20:46 +10:00 |
|
Sam Samai
|
6b17cc50bc
|
Can edit a post
|
2021-09-03 22:00:28 +10:00 |
|
Sam Samai
|
39b5cb7f33
|
Render flash messages
|
2021-09-02 22:30:23 +10:00 |
|
Sam Samai
|
5f47421b38
|
Remove sqlx dir and clean up
|
2021-09-02 21:47:55 +10:00 |
|
Sam Samai
|
b825df1331
|
Get db_url from Db in run_migrations
|
2021-09-02 21:33:28 +10:00 |
|
Sam Samai
|
a5ea54df61
|
Renders HTML pages
|
2021-09-02 20:20:02 +10:00 |
|
Sam Samai
|
13364ab63c
|
Use the database url in Rocket.toml to connect to mysql/postgres
|
2021-09-01 19:59:29 +10:00 |
|
Sam Samai
|
1126aae479
|
Generalize over MySQL and Postgres
|
2021-08-29 21:37:55 +10:00 |
|
Sam Samai
|
380f2a0c04
|
Use create_post_table instead of SQL
|
2021-08-27 22:36:56 +10:00 |
|
Sam Samai
|
f191645467
|
Run migration via try_on_ignite
|
2021-08-27 22:31:54 +10:00 |
|
Sam Samai
|
41d25225e2
|
Create a post #[post("/", data = "<post>")]
|
2021-08-27 22:20:46 +10:00 |
|
Sam Samai
|
11c1e4e399
|
Destroy posts #[delete("/")]
|
2021-08-27 21:39:44 +10:00 |
|
Sam Samai
|
c880ca5732
|
Delete post #[delete("/<id>")]
|
2021-08-26 22:28:17 +10:00 |
|
Sam Samai
|
a922602700
|
Show post #[get("/<id>")]
|
2021-08-26 22:07:38 +10:00 |
|
Sam Samai
|
5adecc9088
|
List post ids #[get("/")]
|
2021-08-26 21:42:50 +10:00 |
|
Billy Chan
|
87d4f09931
|
Add rocket-mysql driver
|
2021-08-25 23:05:30 +08:00 |
|