let DBConf definition live in main, since it will be common to several commands

pull/2/head
Liam Staskawicz 2012-12-15 10:48:32 -08:00
parent 5c8a0d2123
commit 36f3bce74a
2 changed files with 6 additions and 6 deletions

View File

@ -9,6 +9,12 @@ import (
"path"
)
type DBConf struct {
Name string
Driver string
OpenStr string
}
var dbFolder = flag.String("db", "db", "folder containing db info")
var dbConfName = flag.String("config", "development", "which DB configuration to use")
var targetVersion = flag.Int("target", -1, "which DB version to target (defaults to latest version)")

View File

@ -14,12 +14,6 @@ import (
"time"
)
type DBConf struct {
Name string
Driver string
OpenStr string
}
type DBVersion struct {
VersionId int
TStamp time.Time