Skip to content

Commit 4ffadfb

Browse files
authored
Fix name in go.mod (sqlc-dev#64)
* Fix name in go.mod * Rename import paths
1 parent 3858065 commit 4ffadfb

File tree

20 files changed

+30
-30
lines changed

20 files changed

+30
-30
lines changed

cmd/sqlc/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"os"
55

6-
"github.com/kyleconroy/dinosql/internal/cmd"
6+
"github.com/kyleconroy/sqlc/internal/cmd"
77
)
88

99
func main() {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/kyleconroy/dinosql
1+
module github.com/kyleconroy/sqlc
22

33
go 1.12
44

internal/catalog/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"strings"
66

7-
"github.com/kyleconroy/dinosql/internal/pg"
7+
"github.com/kyleconroy/sqlc/internal/pg"
88

99
"github.com/davecgh/go-spew/spew"
1010
nodes "github.com/lfittl/pg_query_go/nodes"

internal/catalog/build_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"strconv"
55
"testing"
66

7-
"github.com/kyleconroy/dinosql/internal/pg"
7+
"github.com/kyleconroy/sqlc/internal/pg"
88

99
"github.com/google/go-cmp/cmp"
1010
"github.com/google/go-cmp/cmp/cmpopts"
@@ -432,8 +432,8 @@ func TestUpdate(t *testing.T) {
432432
Name: "foo",
433433
Arguments: []pg.Argument{
434434
{
435-
Name: "bar",
436-
DataType: "text",
435+
Name: "bar",
436+
DataType: "text",
437437
},
438438
{
439439
Name: "baz",

internal/cmd/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"os/exec"
1010
"path/filepath"
1111

12-
"github.com/kyleconroy/dinosql/internal/dinosql"
12+
"github.com/kyleconroy/sqlc/internal/dinosql"
1313

1414
"github.com/davecgh/go-spew/spew"
1515
pg "github.com/lfittl/pg_query_go"

internal/dinosql/checks.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"strings"
66

7-
"github.com/kyleconroy/dinosql/internal/catalog"
8-
"github.com/kyleconroy/dinosql/internal/pg"
7+
"github.com/kyleconroy/sqlc/internal/catalog"
8+
"github.com/kyleconroy/sqlc/internal/pg"
99
nodes "github.com/lfittl/pg_query_go/nodes"
1010
)
1111

internal/dinosql/checks_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"path/filepath"
55
"testing"
66

7-
"github.com/kyleconroy/dinosql/internal/pg"
7+
"github.com/kyleconroy/sqlc/internal/pg"
88

99
"github.com/google/go-cmp/cmp"
1010
)

internal/dinosql/gen.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"text/template"
1212
"unicode"
1313

14-
core "github.com/kyleconroy/dinosql/internal/pg"
14+
core "github.com/kyleconroy/sqlc/internal/pg"
1515

1616
"github.com/jinzhu/inflection"
1717
)
@@ -641,7 +641,7 @@ func (r Result) GoQueries() []GoQuery {
641641
return qs
642642
}
643643

644-
var dbTmpl = `// Code generated by dinosql. DO NOT EDIT.
644+
var dbTmpl = `// Code generated by sqlc. DO NOT EDIT.
645645
646646
package {{.Package}}
647647
@@ -731,7 +731,7 @@ func (q *Queries) WithTx(tx *sql.Tx) *Queries {
731731
}
732732
}
733733
`
734-
var modelsTmpl = `// Code generated by dinosql. DO NOT EDIT.
734+
var modelsTmpl = `// Code generated by sqlc. DO NOT EDIT.
735735
736736
package {{.Package}}
737737
@@ -760,7 +760,7 @@ type {{.Name}} struct { {{- range .Fields}}
760760
{{end}}
761761
`
762762

763-
var sqlTmpl = `// Code generated by dinosql. DO NOT EDIT.
763+
var sqlTmpl = `// Code generated by sqlc. DO NOT EDIT.
764764
// source: {{.SourceName}}
765765
766766
package {{.Package}}

internal/dinosql/gen_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"testing"
55

66
"github.com/google/go-cmp/cmp"
7-
"github.com/kyleconroy/dinosql/internal/pg"
7+
"github.com/kyleconroy/sqlc/internal/pg"
88
)
99

1010
func TestColumnsToStruct(t *testing.T) {

internal/dinosql/parser.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import (
99
"strconv"
1010
"strings"
1111

12-
"github.com/davecgh/go-spew/spew"
13-
"github.com/kyleconroy/dinosql/internal/catalog"
14-
core "github.com/kyleconroy/dinosql/internal/pg"
15-
"github.com/kyleconroy/dinosql/internal/postgres"
12+
"github.com/kyleconroy/sqlc/internal/catalog"
13+
core "github.com/kyleconroy/sqlc/internal/pg"
14+
"github.com/kyleconroy/sqlc/internal/postgres"
1615

16+
"github.com/davecgh/go-spew/spew"
1717
pg "github.com/lfittl/pg_query_go"
1818
nodes "github.com/lfittl/pg_query_go/nodes"
1919
)

0 commit comments

Comments
 (0)