Skip to content

Commit

Permalink
Fully qualify package name with Github repository
Browse files Browse the repository at this point in the history
  • Loading branch information
EwanNoble committed May 20, 2022
1 parent ea67822 commit f27162f
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module terraform-provider-mssql
module github.com/betr-io/terraform-provider-mssql

go 1.17

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"github.com/hashicorp/terraform-plugin-sdk/v2/plugin"
"terraform-provider-mssql/mssql"
"github.com/betr-io/terraform-provider-mssql/mssql"
)

// These will be set by goreleaser to appropriate values for the compiled binary
Expand Down
4 changes: 2 additions & 2 deletions mssql/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/rs/zerolog/log"
"io"
"os"
"terraform-provider-mssql/mssql/model"
"terraform-provider-mssql/sql"
"github.com/betr-io/terraform-provider-mssql/mssql/model"
"github.com/betr-io/terraform-provider-mssql/sql"
"time"
)

Expand Down
4 changes: 2 additions & 2 deletions mssql/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
"os"
"strconv"
"terraform-provider-mssql/mssql/model"
"terraform-provider-mssql/sql"
"github.com/betr-io/terraform-provider-mssql/mssql/model"
"github.com/betr-io/terraform-provider-mssql/sql"
"testing"
"text/template"
"time"
Expand Down
2 changes: 1 addition & 1 deletion mssql/resource_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/pkg/errors"
"strings"
"terraform-provider-mssql/mssql/model"
"github.com/betr-io/terraform-provider-mssql/mssql/model"
)

const loginNameProp = "login_name"
Expand Down
2 changes: 1 addition & 1 deletion mssql/resource_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/pkg/errors"
"strings"
"terraform-provider-mssql/mssql/model"
"github.com/betr-io/terraform-provider-mssql/mssql/model"
)

func resourceUser() *schema.Resource {
Expand Down
2 changes: 1 addition & 1 deletion mssql/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/rs/zerolog"
"terraform-provider-mssql/mssql/model"
"github.com/betr-io/terraform-provider-mssql/mssql/model"
)

func getLoginID(data *schema.ResourceData) string {
Expand Down
2 changes: 1 addition & 1 deletion sql/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package sql
import (
"context"
"database/sql"
"terraform-provider-mssql/mssql/model"
"github.com/betr-io/terraform-provider-mssql/mssql/model"
)

func (c *Connector) GetLogin(ctx context.Context, name string) (*model.Login, error) {
Expand Down
2 changes: 1 addition & 1 deletion sql/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"log"
"net/url"
"strings"
"terraform-provider-mssql/mssql/model"
"github.com/betr-io/terraform-provider-mssql/mssql/model"
"time"
)

Expand Down
6 changes: 3 additions & 3 deletions sql/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"database/sql"
"strings"
"terraform-provider-mssql/mssql/model"
"github.com/betr-io/terraform-provider-mssql/mssql/model"
)

func (c *Connector) GetUser(ctx context.Context, database, username string) (*model.User, error) {
Expand Down Expand Up @@ -134,7 +134,7 @@ func (c *Connector) CreateUser(ctx context.Context, database string, user *model
*/
RETURNS TABLE AS RETURN
(
SELECT
SELECT
--ROW_NUMBER ( ) over(order by (select 0)) AS id -- intuitive, but not correect
Split.a.value(''let $n := . return count(../*[. << $n]) + 1'', ''int'') AS id
, Split.a.value(''.'', ''NVARCHAR(MAX)'') AS value
Expand Down Expand Up @@ -205,7 +205,7 @@ func (c *Connector) UpdateUser(ctx context.Context, database string, user *model
*/
RETURNS TABLE AS RETURN
(
SELECT
SELECT
--ROW_NUMBER ( ) over(order by (select 0)) AS id -- intuitive, but not correect
Split.a.value(''let $n := . return count(../*[. << $n]) + 1'', ''int'') AS id
, Split.a.value(''.'', ''NVARCHAR(MAX)'') AS value
Expand Down

0 comments on commit f27162f

Please sign in to comment.