1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/tutorials/code/blog/article.v

14 lines
170 B
V
Raw Normal View History

2019-12-14 05:31:09 +03:00
module main
struct Article {
id int
title string
text string
}
pub fn (app &App) find_all_articles() []Article {
2020-06-30 22:04:00 +03:00
return sql app.db {
2020-07-04 19:56:18 +03:00
select from Article
2020-06-30 22:04:00 +03:00
}
2019-12-14 05:31:09 +03:00
}