Skip to content

Commit 4ef52ce

Browse files
authored
Merge pull request #204 from erizocosmico/feature/rename-gitbase
*: rename gitquery to gitbase
2 parents d48ebbb + a67a6bd commit 4ef52ce

35 files changed

+79
-79
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go:
44
- 1.9
55
- tip
66

7-
go_import_path: github.com/src-d/gitquery
7+
go_import_path: github.com/src-d/gitbase
88

99
matrix:
1010
fast_finish: true

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Package configuration
2-
PROJECT = gitquery
3-
COMMANDS = cmd/gitquery
2+
PROJECT = gitbase
3+
COMMANDS = cmd/gitbase
44

55
# Including ci Makefile
66
CI_REPOSITORY ?= https://github.com/src-d/ci.git

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# GitBase <a href="https://travis-ci.org/src-d/gitquery"><img alt="Build Status" src="https://travis-ci.org/src-d/gitquery.svg?branch=master" /></a> <a href="https://codecov.io/gh/src-d/gitquery"><img alt="codecov" src="https://codecov.io/gh/src-d/gitquery/branch/master/graph/badge.svg" /></a> <a href="https://godoc.org/gopkg.in/src-d/gitquery.v0"><img alt="GoDoc" src="https://godoc.org/gopkg.in/src-d/gitquery.v0?status.svg" /></a>
1+
# GitBase <a href="https://travis-ci.org/src-d/gitbase"><img alt="Build Status" src="https://travis-ci.org/src-d/gitbase.svg?branch=master" /></a> <a href="https://codecov.io/gh/src-d/gitbase"><img alt="codecov" src="https://codecov.io/gh/src-d/gitbase/branch/master/graph/badge.svg" /></a> <a href="https://godoc.org/gopkg.in/src-d/gitbase.v0"><img alt="GoDoc" src="https://godoc.org/gopkg.in/src-d/gitbase.v0?status.svg" /></a>
22

33
Query git repositories with a MySQL interface.
44

55
## Installation
66

7-
Check the [Releases](https://github.com/src-d/gitquery/releases) page to download the gitquery binary.
7+
Check the [Releases](https://github.com/src-d/gitbase/releases) page to download the gitbase binary.
88

99
## Usage
1010

1111
```bash
1212
Usage:
13-
gitquery [OPTIONS] <server | version>
13+
gitbase [OPTIONS] <server | version>
1414

1515
Help Options:
1616
-h, --help Show this help message
@@ -40,7 +40,7 @@ SELECT hash, author_email, author_name FROM commits LIMIT 2;
4040
You can execute the `SHOW TABLES` statement to get a list of the available tables.
4141
To get all the columns and types of a specific table, you can write `DESCRIBE TABLE [tablename]`.
4242

43-
gitquery exposes the following tables:
43+
gitbase exposes the following tables:
4444

4545
| Name | Columns |
4646
|:------------:|:---------------------------------------------------------------------------------------------------:|
@@ -112,4 +112,4 @@ GROUP BY committer_email, month, repo_id
112112

113113
## License
114114

115-
gitquery is licensed under the [MIT License](/LICENSE).
115+
gitbase is licensed under the [MIT License](/LICENSE).

blobs.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package gitquery
1+
package gitbase
22

33
import (
44
"bufio"
@@ -12,8 +12,8 @@ import (
1212
)
1313

1414
const (
15-
blobsMaxSizeKey = "GITQUERY_BLOBS_MAX_SIZE"
16-
blobsAllowBinaryKey = "GITQUERY_BLOBS_ALLOW_BINARY"
15+
blobsMaxSizeKey = "GITBASE_BLOBS_MAX_SIZE"
16+
blobsAllowBinaryKey = "GITBASE_BLOBS_ALLOW_BINARY"
1717

1818
b = 1
1919
kib = 1024 * b

blobs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package gitquery
1+
package gitbase
22

33
import (
44
"testing"

cmd/gitquery/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
const (
11-
name = "gitquery"
11+
name = "gitbase"
1212
)
1313

1414
func main() {

cmd/gitquery/server.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"net"
55
"strconv"
66

7-
"github.com/src-d/gitquery"
8-
"github.com/src-d/gitquery/internal/function"
7+
"github.com/src-d/gitbase"
8+
"github.com/src-d/gitbase/internal/function"
99
sqle "gopkg.in/src-d/go-mysql-server.v0"
1010
"gopkg.in/src-d/go-mysql-server.v0/server"
1111
"gopkg.in/src-d/go-vitess.v0/mysql"
@@ -22,7 +22,7 @@ type CmdServer struct {
2222
Password string `short:"P" long:"password" default:"" description:"Password used for connection"`
2323

2424
engine *sqle.Engine
25-
pool *gitquery.RepositoryPool
25+
pool *gitbase.RepositoryPool
2626
name string
2727
}
2828

@@ -35,14 +35,14 @@ func (c *CmdServer) buildDatabase() error {
3535

3636
var err error
3737

38-
pool := gitquery.NewRepositoryPool()
38+
pool := gitbase.NewRepositoryPool()
3939
c.pool = &pool
4040
err = c.pool.AddDir(c.Git)
4141
if err != nil {
4242
return err
4343
}
4444

45-
c.engine.AddDatabase(gitquery.NewDatabase(c.name))
45+
c.engine.AddDatabase(gitbase.NewDatabase(c.name))
4646
c.engine.Catalog.RegisterFunctions(function.Functions)
4747
return nil
4848
}
@@ -64,7 +64,7 @@ func (c *CmdServer) Execute(args []string) error {
6464
hostString,
6565
auth,
6666
c.engine,
67-
gitquery.NewSessionBuilder(c.pool),
67+
gitbase.NewSessionBuilder(c.pool),
6868
)
6969
if err != nil {
7070
return err

commits.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package gitquery
1+
package gitbase
22

33
import (
44
"io"

commits_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package gitquery
1+
package gitbase
22

33
import (
44
"testing"

common_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package gitquery
1+
package gitbase
22

33
import (
44
"context"

0 commit comments

Comments
 (0)