Skip to content
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

Support DateTime<Utc> & DateTime<Local> #489

Merged
merged 3 commits into from
Feb 1, 2022
Merged

Conversation

billy1624
Copy link
Member

@billy1624 billy1624 commented Jan 26, 2022

PR Info

Added

  • supports saving & querying DateTimeUtc
  • supports saving & querying DateTimeLocal
  • set default value of ColumnDef
  • set default value of each column when generating create table statement with Schema::create_table_from_entity method

@billy1624 billy1624 self-assigned this Jan 26, 2022
@billy1624 billy1624 force-pushed the date-time-utc-local branch 2 times, most recently from c470523 to 666b05c Compare January 26, 2022 10:30
@billy1624 billy1624 marked this pull request as ready for review January 26, 2022 11:45
@billy1624 billy1624 requested a review from tyt2y3 January 26, 2022 11:45
@tyt2y3
Copy link
Member

tyt2y3 commented Jan 27, 2022

Seems Charles's code is included. Does that mean we can close 429?

@billy1624
Copy link
Member Author

Seems Charles's code is included. Does that mean we can close 429?

Correct!

billy1624 added a commit to SeaQL/seaql.github.io that referenced this pull request Jan 31, 2022
charleschege and others added 3 commits February 1, 2022 14:27
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
`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`
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.

Support DateTime<Utc> & DateTime<Local>
3 participants