diff --git a/cmd/tools/vcreate.v b/cmd/tools/vcreate.v index df3335b946..5422e48c3e 100644 --- a/cmd/tools/vcreate.v +++ b/cmd/tools/vcreate.v @@ -301,7 +301,7 @@ fn (mut c Create) set_web_project_files() { path: '${c.name}/src/databases/config_databases_sqlite.v' 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 { mut db := sqlite.connect('vweb.sql')! diff --git a/examples/vweb_fullstack/src/databases/config_databases_sqlite.v b/examples/vweb_fullstack/src/databases/config_databases_sqlite.v index d3a3945d76..efb90c92cf 100644 --- a/examples/vweb_fullstack/src/databases/config_databases_sqlite.v +++ b/examples/vweb_fullstack/src/databases/config_databases_sqlite.v @@ -1,6 +1,6 @@ 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 { mut db := sqlite.connect('vweb.sql')! diff --git a/vlib/v/tests/orm_stmt_wrong_return_checking_test.v b/vlib/v/tests/orm_stmt_wrong_return_checking_test.v index 27b5380305..0102d88f87 100644 --- a/vlib/v/tests/orm_stmt_wrong_return_checking_test.v +++ b/vlib/v/tests/orm_stmt_wrong_return_checking_test.v @@ -1,4 +1,4 @@ -import sqlite +import db.sqlite struct Target { pub mut: