Skip to content

#484 Iden static - #508

Merged
ikrivosheev merged 3 commits into
SeaQL:masterfrom
ikrivosheev:feature/issues-484_iden_static
Dec 5, 2022
Merged

ikrivosheev merged 3 commits into
SeaQL:masterfrom
ikrivosheev:feature/issues-484_iden_static

Conversation

@ikrivosheev

Copy link
Copy Markdown
Contributor

PR Info

New Features

  • Create trait IdenStatic

@ikrivosheev ikrivosheev self-assigned this Nov 6, 2022
@ikrivosheev

Copy link
Copy Markdown
Contributor Author

@nitnelave @tyt2y3 @billy1624 can you review my PR?

Comment thread sea-query-derive/src/iden_variant.rs Resolved
Comment thread src/types.rs Resolved

@tyt2y3 tyt2y3 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice addition. I have a feeling like SeaQuery will be slowly more-and-more like SeaORM

@billy1624 billy1624 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!! @ikrivosheev

@ikrivosheev

Copy link
Copy Markdown
Contributor Author

Nice addition. I have a feeling like SeaQuery will be slowly more-and-more like SeaORM

I think this is good. I would like the SeaQuery to be the best query builder) And SeaORM - ORM and SeaQuery helps it for build query) This is one part of this.

@billy1624

Copy link
Copy Markdown
Member

Hey @tyt2y3, I wonder why we need to move below into SeaQuery? Any good reasons?

pub trait IdenStatic: Iden + Copy + Debug + 'static {
    /// Method to call to get the static string identity
    fn as_str(&self) -> &str;
}

@tyt2y3

tyt2y3 commented Nov 18, 2022 •

Copy link
Copy Markdown
Member

Having two symbols with the same name in the same workspace that works (more or less) the same is confusing.

@ikrivosheev
ikrivosheev force-pushed the feature/issues-484_iden_static branch from 2e38628 to 5880c7d Compare November 29, 2022 19:50
@ikrivosheev

Copy link
Copy Markdown
Contributor Author

@tyt2y3 @billy1624 @nitnelave I have done. Can you have a look at it?

Comment thread src/types.rs Resolved
Comment thread src/types.rs Resolved
@ikrivosheev
ikrivosheev merged commit 3972e0b into SeaQL:master Dec 5, 2022
@ikrivosheev
ikrivosheev deleted the feature/issues-484_iden_static branch December 5, 2022 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using Iden with sqlx is cumbersome

4 participants