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

feat: with_column now accepts Column struct #48

Merged
merged 1 commit into from
Dec 23, 2024
Merged

feat: with_column now accepts Column struct #48

merged 1 commit into from
Dec 23, 2024

Conversation

romaninsh
Copy link
Owner

@romaninsh romaninsh commented Dec 23, 2024

Added ability to use column as an argument to add_column:

table
  .with_column("name")
  .with_column(Column::new(..));

also added SqlColumn trait so anything that implemens into can be passed. This would allow me to implement ChronoColumn next that would deal with date/time/duration types and also enable serialisation of the data types into non-string SQL columns.

(the code for this is accidentally merged as part of #47)

@romaninsh romaninsh changed the title wip feat: with_column now accepts Column struct Dec 23, 2024
@romaninsh romaninsh merged commit 2c90a54 into main Dec 23, 2024
1 of 2 checks passed
@romaninsh romaninsh deleted the rm-branch-1 branch December 23, 2024 17:55
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.

1 participant