Skip to content

Commit

Permalink
seaography integration SeaQL/sea-orm#1599
Browse files Browse the repository at this point in the history
  • Loading branch information
darkmmon committed Jul 12, 2023
1 parent bae2602 commit 7ea184d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SeaORM/docs/0.12.x-CHANGELOG_temp.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,8 @@ assert_eq!(
);
```
* [sea-orm-cli] Added support for generating migration of space separated name, for example executing `sea-orm-cli migrate generate "create accounts table"` command will create `m20230503_000000_create_accounts_table.rs` for you https://github.com/SeaQL/sea-orm/pull/1570

TODO: seaography change idk how owo
* Add `seaography` flag to `sea-orm`, `sea-orm-orm-macros` and `sea-orm-cli` https://github.com/SeaQL/sea-orm/pull/1599
================================ All Changes above was being Documented ================================
* Add generation of `seaography` related information to `sea-orm-codegen` https://github.com/SeaQL/sea-orm/pull/1599

The following information is added in entities files by `sea-orm-cli` when flag `seaography` is `true`
Expand All @@ -205,6 +204,7 @@ pub enum RelatedEntity {
* Add `DeriveEntityRelated` macro https://github.com/SeaQL/sea-orm/pull/1599

The DeriveRelatedEntity derive macro will implement `seaography::RelationBuilder` for `RelatedEntity` enumeration when the `seaography` feature is enabled
================================ All Changes above was being Documented ================================

* Add `expr`, `exprs` and `expr_as` methods to `QuerySelect` trait
```rs
Expand Down
4 changes: 4 additions & 0 deletions SeaORM/docs/10-internal-design/02-derive-macro.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ The [`EntityModel`](#) derive macro is the 'almighty' macro which automatically

The [`DeriveEntity`](#) derive macro will implement [`EntityTrait`](#) for `Entity` and it assumes `Model`, `Column`, `PrimaryKey` and `Relation` exist in the current scope. It also provides implementation of [`Iden`](#) and [`IdenStatic`](#) for `Entity`.

## RelatedEntity

The [`DeriveRelatedEntity`](#) derive macro will implement [`seaography::RelationBuilder`](#) for `RelatedEntity` enumeration when the `seaography` feature is enabled

## Column

The [`DeriveColumn`](#) derive macro will implement [`ColumnTrait`](#) for `Columns`. It defines the identifier of each column by implementing [`Iden`](#) and [`IdenStatic`](#). The [`EnumIter`](#) is also derived, allowing iteration over all enum variants.
Expand Down

0 comments on commit 7ea184d

Please sign in to comment.