-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
sse.go
44 lines (36 loc) · 1.11 KB
/
sse.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
Sql Data Viewer, Copyright Tim Abell 2015-2024
All rights reserved.
A tool for browsing the data in any rdbms databse
through a series of generated html pages.
Provides navigation between tables via the foreign keys
defined in the database's schema.
*/
package main
import (
"github.com/timabell/schema-explorer/about"
"github.com/timabell/schema-explorer/licensing"
_ "github.com/timabell/schema-explorer/mssql"
_ "github.com/timabell/schema-explorer/mysql"
"github.com/timabell/schema-explorer/options"
_ "github.com/timabell/schema-explorer/pg"
"github.com/timabell/schema-explorer/serve"
_ "github.com/timabell/schema-explorer/sqlite"
"log"
)
func main() {
options.SetupArgs()
options.ReadArgsAndEnv()
log.Printf("%s\n %s\n %s",
about.About.Summary(),
licensing.CopyrightText(),
licensing.LicenseText())
// only spit out connection info if configured
if options.Options.Driver != "" {
log.Printf("Driver: %s", options.Options.Driver)
if options.Options.ConnectionDisplayName != "" {
log.Printf("Connection name: \"%s\"", options.Options.ConnectionDisplayName)
}
}
serve.RunServer()
}