You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/gitbase/command/server.go
+15-20Lines changed: 15 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -22,30 +22,23 @@ import (
22
22
const (
23
23
ServerDescription="Starts a gitbase server instance"
24
24
ServerHelp=ServerDescription+"\n\n"+
25
-
"The squashing tables and pushing down join conditions is still a\n"+
26
-
"work in progress and unstable, disabled by default. It can be enabled\n"+
27
-
"using a not empty value at GITBASE_UNSTABLE_SQUASH_ENABLE env variable.\n\n"+
28
-
"By default when gitbase encounters an error in a repository it\n"+
25
+
"By default when gitbase encounters and error in a repository it\n"+
29
26
"stops the query. With GITBASE_SKIP_GIT_ERRORS variable it won't\n"+
30
27
"complain and just skip those rows or repositories."
31
28
)
32
29
33
30
// Server represents the `server` command of gitbase cli tool.
34
31
typeServerstruct {
35
-
Verbosebool`short:"v" description:"Activates the verbose mode"`
36
-
Git []string`short:"g" long:"git" description:"Path where the git repositories are located, multiple directories can be defined. Accepts globs."`
37
-
Siva []string`long:"siva" description:"Path where the siva repositories are located, multiple directories can be defined. Accepts globs."`
38
-
Hoststring`short:"h" long:"host" default:"localhost" description:"Host where the server is going to listen"`
39
-
Portint`short:"p" long:"port" default:"3306" description:"Port where the server is going to listen"`
40
-
Userstring`short:"u" long:"user" default:"root" description:"User name used for connection"`
41
-
Passwordstring`short:"P" long:"password" default:"" description:"Password used for connection"`
42
-
PilosaURLstring`long:"pilosa" default:"http://localhost:10101" description:"URL to your pilosa server" env:"PILOSA_ENDPOINT"`
43
-
IndexDirstring`short:"i" long:"index" default:"/var/lib/gitbase/index" description:"Directory where the gitbase indexes information will be persisted." env:"GITBASE_INDEX_DIR"`
44
-
45
-
// UnstableSquash quashing tables and pushing down join conditions is still
46
-
// a work in progress and unstable. To enable it, the GITBASE_UNSTABLE_SQUASH_ENABLE
47
-
// must not be empty.
48
-
UnstableSquashbool
32
+
Verbosebool`short:"v" description:"Activates the verbose mode"`
33
+
Git []string`short:"g" long:"git" description:"Path where the git repositories are located, multiple directories can be defined. Accepts globs."`
34
+
Siva []string`long:"siva" description:"Path where the siva repositories are located, multiple directories can be defined. Accepts globs."`
35
+
Hoststring`short:"h" long:"host" default:"localhost" description:"Host where the server is going to listen"`
36
+
Portint`short:"p" long:"port" default:"3306" description:"Port where the server is going to listen"`
37
+
Userstring`short:"u" long:"user" default:"root" description:"User name used for connection"`
38
+
Passwordstring`short:"P" long:"password" default:"" description:"Password used for connection"`
39
+
PilosaURLstring`long:"pilosa" default:"http://localhost:10101" description:"URL to your pilosa server" env:"PILOSA_ENDPOINT"`
40
+
IndexDirstring`short:"i" long:"index" default:"/var/lib/gitbase/index" description:"Directory where the gitbase indexes information will be persisted." env:"GITBASE_INDEX_DIR"`
41
+
DisableSquashbool`long:"no-squash" description:"Disables the table squashing."`
49
42
// IgnoreGitErrors by default when gitbase encounters and error in a
50
43
// repository it stops the query. With this parameter it won't complain and
|`GITBASE_BLOBS_MAX_SIZE`| maximum blob size to return in MiB, default 5 MiB |
10
10
|`GITBASE_BLOBS_ALLOW_BINARY`| enable retrieval of binary blobs, default `false`|
11
-
|`GITBASE_UNSTABLE_SQUASH_ENABLE`| enable join squash rule to improve query performance **experimental**. This optimization collects inner joins between tables with a set of supported conditions and converts them into a single node that retrieves the data in chained steps (getting first the commits and then the blobs of every commit instead of joining all commits and all blobs, for example).|
12
11
|`GITBASE_SKIP_GIT_ERRORS`| do not stop queries on git errors, default disabled |
13
12
14
13
## Command line arguments
@@ -34,10 +33,6 @@ Usage:
34
33
35
34
Starts a gitbase server instance
36
35
37
-
The squashing tables and pushing down join conditions is still a
38
-
work in progress and unstable, disable by default. It can be enabled
39
-
using a not empty value at GITBASE_UNSTABLE_SQUASH_ENABLE env variable.
40
-
41
36
By default when gitbase encounters an error in a repository it
42
37
stops the query. With GITBASE_SKIP_GIT_ERRORS variable it won't
43
38
complain and just skip those rows or repositories.
@@ -55,4 +50,5 @@ Help Options:
55
50
-P, --password= Password used for connection
56
51
--pilosa= URL to your pilosa server (default: http://localhost:10101)
57
52
-i, --index= Directory where the gitbase indexes information will be persisted. (default: /var/lib/gitbase/index)
0 commit comments