mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
9 lines
166 B
V
9 lines
166 B
V
module databases
|
|
|
|
import db.sqlite // can change to 'db.mysql', 'db.pg'
|
|
|
|
pub fn create_db_connection() !sqlite.DB {
|
|
mut db := sqlite.connect('app.db')!
|
|
return db
|
|
}
|