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:
parent
b69f9419f0
commit
36834be2ad
@ -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')!
|
||||||
|
@ -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')!
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import sqlite
|
import db.sqlite
|
||||||
|
|
||||||
struct Target {
|
struct Target {
|
||||||
pub mut:
|
pub mut:
|
||||||
|
Loading…
Reference in New Issue
Block a user