mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
examples: refactor vweb_orm_jwt (#15389)
This commit is contained in:
parent
9c96b13f9b
commit
b45da86688
8 changed files with 31 additions and 48 deletions
|
@ -61,12 +61,12 @@ pub fn (mut app App) delete() vweb.Result {
|
|||
}
|
||||
|
||||
defer {
|
||||
db.close()
|
||||
db.close() or { panic(err) }
|
||||
}
|
||||
|
||||
sql db {
|
||||
drop table User
|
||||
}
|
||||
|
||||
return app.text('Tabela deletada com sucesso')
|
||||
return app.text('Successfully deleted table')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue