chore: rename db module to avoid conflict with vlib

This commit is contained in:
Jef Roosens 2023-02-08 11:09:18 +01:00
parent b3a119f221
commit 91a976c634
Signed by untrusted user: Jef Roosens
GPG key ID: B75D4F293C7052DB
19 changed files with 15 additions and 17 deletions

View file

@ -3,7 +3,6 @@ module server
import web
import net.urllib
import web.response { new_data_response, new_response }
import db
import time
import os
import util

View file

@ -2,7 +2,6 @@ module server
import web
import web.response { new_data_response, new_response }
import db
import models { Target, TargetArch, TargetFilter }
// v1_get_targets returns the current list of targets.

View file

@ -5,7 +5,7 @@ import os
import log
import repo
import util
import db
import dbms
import build { BuildJobQueue }
import cron
import metrics
@ -25,7 +25,7 @@ pub mut:
repo repo.RepoGroupManager [required; web_global]
// Keys are the various architectures for packages
job_queue BuildJobQueue [required; web_global]
db db.VieterDb
db dbms.VieterDb
}
// init_job_queue populates a fresh job queue with all the targets currently
@ -88,7 +88,7 @@ pub fn server(conf Config) ! {
}
db_file := os.join_path_single(conf.data_dir, server.db_file_name)
db := db.init(db_file) or {
db := dbms.init(db_file) or {
util.exit_with_message(1, 'Failed to initialize database: ${err.msg()}')
}