mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
tutorials: web blog fixes
This commit is contained in:
parent
7df6984261
commit
34ddc9240e
3 changed files with 25 additions and 27 deletions
|
@ -7,9 +7,9 @@ struct Article {
|
|||
}
|
||||
|
||||
pub fn (app &App) find_all_articles() []Article {
|
||||
db := app.db
|
||||
articles := db.select from Article
|
||||
return articles
|
||||
return sql app.db {
|
||||
select from Article
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue