-
-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Insert Default - Inserting ActiveModel
with all attributes NotSet
#432
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
billy1624
force-pushed
the
insert-default-values
branch
from
January 6, 2022 14:23
3d82e0d
to
e14e918
Compare
tyt2y3
added a commit
that referenced
this pull request
Feb 6, 2022
…#432) * feat: apply alias on `ColumnRef::SchemaTableColumn` * build: update sea-query dependency * feat: insert default * Use sea-query 0.21 Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
tyt2y3
added a commit
that referenced
this pull request
Feb 6, 2022
…#432) * feat: apply alias on `ColumnRef::SchemaTableColumn` * build: update sea-query dependency * feat: insert default * Use sea-query 0.21 Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
tyt2y3
added a commit
that referenced
this pull request
Feb 6, 2022
…#432) * feat: apply alias on `ColumnRef::SchemaTableColumn` * build: update sea-query dependency * feat: insert default * Use sea-query 0.21 Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
Oh I forgot to merge the sea-query PR |
I don't think this feature is ready. I reverted the commit for now. Please revisit later. |
billy1624
added a commit
to SeaQL/seaql.github.io
that referenced
this pull request
Feb 7, 2022
This reverts commit 88b6b3c.
tyt2y3
added a commit
that referenced
this pull request
Mar 6, 2022
* Add Poem example * Name conflict of foreign key constraints when two entities have more than one foreign keys (#417) * fix: name conflict of foreign key constraints when two entities have more than one fk * test: update test case's foreign keys * feat: override default name of foreign key constraint * Add `max_lifetime` connection option * Remove `r#` prefix from column name when field has a raw identifier * Fix FromQueryResult when Result is redefined Macros should only ever use absolute import paths. Shorthands can clash (as they have in my case). * Support the use of chrono::DateTime<Utc> in sea-orm Add documentation for this Temporarily use a fork to include new Sea-query code Add tests for DateTimeUtc Solve Github actions error by add the code to create a table Assertion accuracy tests Rectify incorrect format * Refactoring `ColumnDef` with default value Cargo fmt Update docs Fixup Support `DateTimeLocal` Update docs Codegen write db timestamp column as `DateTimeUtc` type Update dependency Merge branch 'sea-query/add-new-column-ref' into pr/429 feat: apply alias on `ColumnRef::SchemaTableColumn` * Update sea-query dependency * Fully quantity `std::result::Result` in proc_maros * 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 * Fix sea-schema dependency * Codegen `column_name` proc_macro attribute (#433) * feat: codegen `column_name` proc_macro attribute * test: codegen `column_name` * Temporary fix * Fix sea-orm dependency * Insert Default - Inserting `ActiveModel` with all attributes `NotSet` (#432) * feat: apply alias on `ColumnRef::SchemaTableColumn` * build: update sea-query dependency * feat: insert default * Use sea-query 0.21 Co-authored-by: Billy Chan <ccw.billy.123@gmail.com> * Easy joins with MockDatabase #447 (#455) * Easy joins with MockDatabase #447 * fix MR * add unit test * Add test cases * Cargo fmt Co-authored-by: Bastian Schubert <bastian.schubert@crosscard.com> Co-authored-by: Billy Chan <ccw.billy.123@gmail.com> Co-authored-by: Chris Tsang <chris.2y3@outlook.com> * cargo fmt * Revert "Insert Default - Inserting `ActiveModel` with all attributes `NotSet` (#432)" This reverts commit 33a87d7. * Prepare release * sea-orm-codegen 0.6.0 * sea-orm-cli 0.6.0 * sea-orm-macros 0.6.0 * 0.6.0 * Optimize GitHub actions * Update examples sea-orm version Update example sea-schema version Update [cli] sea-schema version * Fix [cli] cargo publish failed * Update CHANGELOG * Use sea-schema 0.5.1 * use sea_schema::migration::prelude * Use caret requirements * Fix build error * Examples with migration (#509) * Update examples sea-orm version * Update example sea-schema version * Update [cli] sea-schema version * Fix [cli] cargo publish failed * Update CHANGELOG * Edit rocket example * Poem example with migration * Axum example with migration * Refactoring * Actix4 example with migration * Actix example with migration * Use sea_schema::migration::prelude Co-authored-by: Sunli <scott_s829@163.com> Co-authored-by: Billy Chan <30400950+billy1624@users.noreply.github.com> Co-authored-by: Billy Chan <ccw.billy.123@gmail.com> Co-authored-by: Szepesi Tibor <sztibi023@gmail.com> Co-authored-by: Tom Hacohen <tasn@users.noreply.github.com> Co-authored-by: Charles Chege <charleschege@protonmail.ch> Co-authored-by: Bastian <b.schubert82@gmail.com> Co-authored-by: Bastian Schubert <bastian.schubert@crosscard.com>
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Info
sea-query
version #430