25
This commit is contained in:
parent
a53eb362c2
commit
ffe3ebdd75
2 changed files with 8 additions and 8 deletions
|
@ -8,7 +8,7 @@
|
|||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>Welcome to Welland Gouldsith Management System</h1>
|
||||
<h1>Welcome to Welland Gouldsmith Management System</h1>
|
||||
</header>
|
||||
<main>
|
||||
<section class="options">
|
||||
|
|
14
src/main.v
14
src/main.v
|
@ -1,7 +1,7 @@
|
|||
module main
|
||||
|
||||
import vweb
|
||||
// import databases
|
||||
import databases
|
||||
import os
|
||||
|
||||
const (
|
||||
|
@ -17,14 +17,14 @@ pub fn (app App) before_request() {
|
|||
}
|
||||
|
||||
fn main() {
|
||||
// mut db := databases.create_db_connection() or { panic(err) }
|
||||
mut db := databases.create_db_connection() or { panic(err) }
|
||||
|
||||
// sql db {
|
||||
// create table User
|
||||
// create table Product
|
||||
// } or { panic('error on create table: ${err}') }
|
||||
sql db {
|
||||
create table Faculty
|
||||
// create table Product
|
||||
} or { panic('error on create table: ${err}') }
|
||||
|
||||
// db.close() or { panic(err) }
|
||||
db.close() or { panic(err) }
|
||||
|
||||
mut app := &App{}
|
||||
app.serve_static('/favicon.ico', 'src/assets/favicon.ico')
|
||||
|
|
Loading…
Reference in a new issue