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

orm: update readme with more specifics #21697

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

splashsky
Copy link
Contributor

While working on my project I found that time.Time has non-obvious behavior when creating tables in the ORM. Some additional specificity regarding passing the structs as the table was appreciated, and so the expression examples have been updated to be more explicit about this.

Some wording was updated as well to make concepts more obvious.

This PR only updates the README file in vlib/orm, so no tests are necessary.

@@ -47,23 +60,55 @@ struct Child {
}
```

### Create
To use the ORM, there is a special interface that lets you use the structs and V itself in queries.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
To use the ORM, there is a special interface that lets you use the structs and V itself in queries.
To use the ORM, there is a special expression that lets you use the structs and V itself in queries.

The word interface has a special meaning in V, and imho can be a bit confusing for the readers.

Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

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

Good work.

@spytheman spytheman merged commit aaa23bb into vlang:master Jun 19, 2024
4 checks passed
@splashsky splashsky deleted the orm_update_readme branch June 28, 2024 12:33
raw-bin pushed a commit to raw-bin/v that referenced this pull request Jul 2, 2024
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.

2 participants