1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: fix the remaining deprecated import sqlite statements (#17021)

This commit is contained in:
Minsoo 2023-01-19 16:37:55 +09:00 committed by GitHub
parent b69f9419f0
commit 36834be2ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -301,7 +301,7 @@ fn (mut c Create) set_web_project_files() {
path: '${c.name}/src/databases/config_databases_sqlite.v' path: '${c.name}/src/databases/config_databases_sqlite.v'
content: "module databases content: "module databases
import sqlite // can change to 'mysql', 'pg' import db.sqlite // can change to 'db.mysql', 'db.pg'
pub fn create_db_connection() !sqlite.DB { pub fn create_db_connection() !sqlite.DB {
mut db := sqlite.connect('vweb.sql')! mut db := sqlite.connect('vweb.sql')!

View File

@ -1,6 +1,6 @@
module databases module databases
import sqlite // can change to 'mysql', 'pg' import db.sqlite // can change to 'db.mysql', 'db.pg'
pub fn create_db_connection() !sqlite.DB { pub fn create_db_connection() !sqlite.DB {
mut db := sqlite.connect('vweb.sql')! mut db := sqlite.connect('vweb.sql')!

View File

@ -1,4 +1,4 @@
import sqlite import db.sqlite
struct Target { struct Target {
pub mut: pub mut: