1735 Commits

Author SHA1 Message Date
Chris Tsang
c56a37df51 Changelog 2022-07-11 23:44:43 +08:00
Andrew Huynh
fd279e2a74
Add spyglass to community doc (#856) 2022-07-11 23:22:18 +08:00
kyoto7250
23ac958142
include column name in TryGetError::Null (#853)
* include column name in TryGetError::Null

* remove prefix
2022-07-11 23:16:03 +08:00
Billy Chan
c5aa63e282
Generate entity files with PostgreSQL's schema name (#422)
* feat(codegen): generate entity files with PostgreSQL's schema name

* Ignore schema name `public`

* Restore changes

* Fix test cases

* cargo fmt

* [cli] fixup
2022-07-11 23:11:04 +08:00
Billy Chan
1a8d22d918
cargo fmt 2022-07-11 17:26:57 +08:00
Chris Tsang
4aaabacae3 Fix clippy 2022-07-11 00:42:42 +08:00
Chris Tsang
2824d5d598 Changelog 2022-07-11 00:41:10 +08:00
Billy Chan
bb9d532ab5
Support join with table alias (#852) 2022-07-11 00:07:11 +08:00
Chris Tsang
c956805210 Changelog 2022-07-11 00:05:32 +08:00
Chris Tsang
a24df5a91e Tweaks & fmt 2022-07-11 00:03:40 +08:00
Chris Tsang
c18a204f78 Changelog 2022-07-10 23:41:26 +08:00
Chris Tsang
cc31409549 Changelog 2022-07-10 23:41:26 +08:00
Chris Tsang
5bd05c697d Changelog 2022-07-10 23:41:26 +08:00
Chris Tsang
301d01a52a Changelog 2022-07-10 23:41:26 +08:00
Chris Tsang
47e80024d5 Changelog 2022-07-10 23:41:26 +08:00
Billy Chan
6e47d488d4
Drop SelectTwoMany::one method (#813) 2022-07-10 23:41:10 +08:00
Billy Chan
1fc156288e
[cli] skip checking connection string contains username and host (#851) 2022-07-10 23:03:33 +08:00
Billy Chan
65017bdc08
Add various blob column types with size (#850) 2022-07-10 22:52:50 +08:00
Billy Chan
1a3e8c456a
[CI] run clippy checks & fix clippy warnings (#840)
* Run clippy checks

* Fix clippy warnings

* Clippy checks for `sea-orm-*` crates

* Fix clippy warnings

* Fixup
2022-07-10 15:38:38 +08:00
Nahua
a1bf662fc3
#661: Add flag to sea-orm-cli to generate code for time crate (#724)
* Implement entity writer context and date time crate enum

* Use entity writer context to render correct rust type according to chrono/time enum

* Add unit test to get col rs type with time crate

* Add date-time-crate flag for cli

* Edit usage of updated get_rs_type method

* Use arg enum for date time crate

* Move date time crate arg enum conversion into commands module

* Directly use arg enum

* Fixing import issues for arg enum w/ help from Billy
2022-07-10 15:22:47 +08:00
Chris Tsang
54adc76850 Tweaks 2022-07-10 15:16:33 +08:00
Chris Tsang
a745318b04 Changelog 2022-07-10 15:15:45 +08:00
Chris Tsang
566430627a Changelog 2022-07-10 15:14:59 +08:00
LingDu
14e6c011b7
Update COMMUNITY.md (#857)
add poem_admin
2022-07-10 15:13:38 +08:00
Chris Tsang
bfe6eb39d5
Cursor pagination (#822)
* Cursor pagination

* Apply filter / range filter on cursor; Allow non-primary key filter

* Fixup

* Update cursor API

* Cursor pagination with composite keys

* Docs

* Rename cursor() to cursor_by()

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-07-10 15:08:38 +08:00
Émile Fugulin
d0aeda7bdd
Add time from u64 (#849) 2022-07-08 18:20:28 +08:00
Billy Chan
cecf4545cb
cargo fmt 2022-07-08 14:48:04 +08:00
Billy Chan
b0ea1138b4
Update lib.rs 2022-07-07 15:20:43 +08:00
Billy Chan
79d08e7d40
Update README.md 2022-07-07 15:20:17 +08:00
Billy Chan
9983e5d498
Update [issues] 2022-07-06 17:07:07 +08:00
Billy Chan
74b4d80f9d
Update [issues] 2022-07-06 17:02:59 +08:00
baoyachi. Aka Rust Hairy crabs
beef8211d8
fix compile error,res args add type (#839)
* fix compile error,res add type

* update .gitignore

* fix compile error

* fix compile error
2022-07-05 16:04:11 +08:00
Billy Chan
e0eb8ecf69
[cli] skip generating entity for ignored tables (#837) 2022-07-05 01:19:36 +08:00
Billy Chan
d6831e5295
Bump version of sqlx, sea-query, sea-schema, time and uuid (#834)
* Bump version of sqlx, sea-query, sea-schema, time and uuid

* PostgreSQL `u32` was wrapped in `Oid` (launchbadge/sqlx#1602)

* Update test cases

* Fix clippy warnings

* cargo fmt

* Fix clippy warnings

* Bump sea-schema to ^0.9.2

* Update test cases

* Pin on sea-query minor version
2022-07-05 01:05:11 +08:00
Billy Chan
1c4acf1402
[cli] remove unused code 2022-07-04 17:36:58 +08:00
Chris Tsang
a97104559a Fix build error 2022-07-02 14:44:39 +08:00
Mateusz
087f8462a6
Parse enum from repr[X] enums with values (#769)
* parse enum from repr[X] enums with values

* fix parsing negative enums variants with repr[X]

* add tests for enum num_value fallback support
2022-07-02 14:31:16 +08:00
Chris Tsang
5ff6063fe1 Reduce CI burden 2022-07-02 14:19:54 +08:00
Chris Tsang
ef6393d5c6 Consolidate feature flags 2022-07-02 14:17:14 +08:00
Chris Tsang
5ff8259799 Changelog 2022-07-01 02:53:32 +08:00
Eric
5037dc99ec
Create a num_items_and_pages on the paginator (#768)
* Create a `num_items_and_pages` on the `paginator`

This method allows us to get both number of items and pages of a
paginator with only one database query.

* Improve documentation

* Create a dedicated struct for items and pages number
2022-07-01 02:50:20 +08:00
Chris Tsang
b40ce6ee83 Changelog 2022-07-01 02:47:05 +08:00
Chris Tsang
50f9f5ad2f
Merge pull request #755 from SeaQL/apply-old-pending-migration
Allow old pending migration to be applied
2022-07-01 02:40:37 +08:00
Chris Tsang
166759d489 Changelog 2022-07-01 02:38:33 +08:00
Chris Tsang
55601f2966 Changelog 2022-07-01 02:35:45 +08:00
Chris Tsang
ec881e35a9
Merge pull request #588 from SeaQL/cli-gen-enum-num-variants
CLI generate enum with numeric like variants
2022-07-01 02:10:00 +08:00
Billy Chan
ab2f784701
(de)serialize custom JSON types - 2 (#794)
* de(serialize) custom JSON types

* Rename DeriveTryGetableFromJson -> FromJsonQueryResult

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-07-01 01:27:46 +08:00
Chris Tsang
4be32e7a9f Changelog 2022-06-29 00:44:24 +08:00
Chris Tsang
8a4be1428d Changelog 2022-06-29 00:43:30 +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