Skip to content

[cli] skip generating entity for ignored tables#837

Merged
tyt2y3 merged 1 commit intomasterfrom
generate-entity-ignore-tables
Jul 4, 2022
Merged

[cli] skip generating entity for ignored tables#837
tyt2y3 merged 1 commit intomasterfrom
generate-entity-ignore-tables

Conversation

@billy1624
Copy link
Copy Markdown
Member

@billy1624 billy1624 commented Jul 4, 2022

PR Info

Adds

  • sea-orm-cli generate entity ignore seaql_migrations table by default; Option can be overridden by providing --ignore-tables seaql_migrations,table_to_be_ignored

@billy1624 billy1624 self-assigned this Jul 4, 2022
@billy1624 billy1624 marked this pull request as ready for review July 4, 2022 09:42
@billy1624 billy1624 requested a review from tyt2y3 July 4, 2022 09:43
Copy link
Copy Markdown
Contributor

@ikrivosheev ikrivosheev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@billy1624 thank you! LGTM!

@tyt2y3 tyt2y3 merged commit e0eb8ec into master Jul 4, 2022
@tyt2y3 tyt2y3 deleted the generate-entity-ignore-tables branch July 4, 2022 17:19
billy1624 added a commit to SeaQL/seaql.github.io that referenced this pull request Jul 13, 2022
tyt2y3 added a commit to SeaQL/seaql.github.io that referenced this pull request Jul 17, 2022
* Custom join condition (SeaQL/sea-orm#793)

* Migration does not depend on entity crate

* Define integer enum with repr[x] syntax

* Document datatype mappings (SeaQL/sea-orm#772)

* Cursor pagination (SeaQL/sea-orm#754, SeaQL/sea-orm#822)

* (de)serialize custom JSON types (SeaQL/sea-orm#794)

* Generate new migration file (SeaQL/sea-orm#656)

* Skip generating entity file for specific tables (SeaQL/sea-orm#837)

* Generate entity with date time crate option (SeaQL/sea-orm#724)

* Drop `SelectTwoMany::one()` method (SeaQL/sea-orm#813)

* Datatype mappings of primitives (SeaQL/sea-orm#850, SeaQL/sea-schema#75)

* Join with table alias (SeaQL/sea-orm#852)

* SQLx logging level (SeaQL/sea-orm#800)

* Insert with on conflict (SeaQL/sea-orm#791)

* Migrate generate should take file name as argument instead of option (SeaQL/sea-orm#870)

* Upgrade docusaurus to 2.0.0-beta.22

* What's new in SeaORM 0.9.0

* Move migration section forward

* Rename "Generating Database Schema" section to "Generating SeaQuery Statement"

* Fix broken links

* Edit

* Edit

* Edit

* Edit

Co-authored-by: Chris Tsang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[CLI] Ignore seaql_migrations table by default when generating entity files

3 participants