This commit is contained in:
Aritra Banik 2024-06-04 12:42:00 +05:30
parent a53eb362c2
commit ffe3ebdd75
2 changed files with 8 additions and 8 deletions

View file

@ -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">

View file

@ -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')