mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
vweb tutorial
This commit is contained in:
parent
75c01dec30
commit
e99547cd7f
9 changed files with 416 additions and 0 deletions
22
tutorials/blog.sql
Normal file
22
tutorials/blog.sql
Normal file
|
@ -0,0 +1,22 @@
|
|||
create database blog;
|
||||
|
||||
\c blog
|
||||
|
||||
drop table articles;
|
||||
|
||||
create table articles (
|
||||
id serial primary key,
|
||||
title text default '',
|
||||
text text default ''
|
||||
);
|
||||
|
||||
insert into articles (title, text) values (
|
||||
'Hello, world!',
|
||||
'V is great.'
|
||||
);
|
||||
|
||||
insert into articles (title, text) values (
|
||||
'Second post.',
|
||||
'Hm... what should I write about?'
|
||||
);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue