forked from vieter-v/vieter
chore: rename db module to avoid conflict with vlib
This commit is contained in:
parent
b3a119f221
commit
91a976c634
19 changed files with 15 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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()}')
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue