Skip to content

Commit

Permalink
Update mod files
Browse files Browse the repository at this point in the history
  • Loading branch information
Cornel Rautenbach committed Jan 16, 2023
1 parent a3e2697 commit 84f93e6
Show file tree
Hide file tree
Showing 136 changed files with 706 additions and 668 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ jobs:
- uses: ncipollo/release-action@v1
with:
body:
Please refer to [CHANGELOG.md](https://github.com/uptrace/bun/blob/master/CHANGELOG.md)
for details
Please refer to
[CHANGELOG.md](https://github.com/carautenbach/bun/blob/master/CHANGELOG.md) for details
478 changes: 258 additions & 220 deletions CHANGELOG.md

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SQL-first Golang ORM for PostgreSQL, MySQL, MSSQL, and SQLite

[![build workflow](https://github.com/uptrace/bun/actions/workflows/build.yml/badge.svg)](https://github.com/uptrace/bun/actions)
[![build workflow](https://github.com/carautenbach/bun/actions/workflows/build.yml/badge.svg)](https://github.com/carautenbach/bun/actions)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/uptrace/bun)](https://pkg.go.dev/github.com/uptrace/bun)
[![Documentation](https://img.shields.io/badge/bun-documentation-informational)](https://bun.uptrace.dev/)
[![Chat](https://discordapp.com/api/guilds/752070105847955518/widget.png)](https://discord.gg/rWtp5Aj)
Expand Down Expand Up @@ -31,8 +31,8 @@
### Resources

- [**Get started**](https://bun.uptrace.dev/guide/golang-orm.html)
- [Examples](https://github.com/uptrace/bun/tree/master/example)
- [Discussions](https://github.com/uptrace/bun/discussions)
- [Examples](https://github.com/carautenbach/bun/tree/master/example)
- [Discussions](https://github.com/carautenbach/bun/discussions)
- [Chat](https://discord.gg/rWtp5Aj)
- [Reference](https://pkg.go.dev/github.com/uptrace/bun)
- [Starter kit](https://github.com/go-bun/bun-starter-kit)
Expand All @@ -58,7 +58,7 @@ Wrote a tutorial for Bun? Create a PR to add here and on [Bun](https://bun.uptra
- [penguin-statistics](https://github.com/penguin-statistics/backend-next) - Penguin Statistics v3
Backend.
- And
[hundreds more](https://github.com/uptrace/bun/network/dependents?package_id=UGFja2FnZS0yMjkxOTc4OTA4).
[hundreds more](https://github.com/carautenbach/bun/network/dependents?package_id=UGFja2FnZS0yMjkxOTc4OTA4).

## Why another database client?

Expand Down Expand Up @@ -139,6 +139,6 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for some hints.

And thanks to all the people who already contributed!

<a href="https://github.com/uptrace/bun/graphs/contributors">
<a href="https://github.com/carautenbach/bun/graphs/contributors">
<img src="https://contributors-img.web.app/image?repo=uptrace/bun" />
</a>
4 changes: 2 additions & 2 deletions bun.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package bun
import (
"context"

"github.com/uptrace/bun/internal"
"github.com/uptrace/bun/schema"
"github.com/carautenbach/bun/internal"
"github.com/carautenbach/bun/schema"
)

type (
Expand Down
6 changes: 3 additions & 3 deletions db.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"strings"
"sync/atomic"

"github.com/uptrace/bun/dialect/feature"
"github.com/uptrace/bun/internal"
"github.com/uptrace/bun/schema"
"github.com/carautenbach/bun/dialect/feature"
"github.com/carautenbach/bun/internal"
"github.com/carautenbach/bun/schema"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion dbfixture/fixture.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"gopkg.in/yaml.v3"

"github.com/uptrace/bun"
"github.com/uptrace/bun/schema"
"github.com/carautenbach/bun/schema"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion dbfixture/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/uptrace/bun/dbfixture
module github.com/carautenbach/bun/dbfixture

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion dialect/append.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"math"
"strconv"

"github.com/uptrace/bun/internal"
"github.com/carautenbach/bun/internal"
)

func AppendError(b []byte, err error) []byte {
Expand Down
2 changes: 1 addition & 1 deletion dialect/feature/feature.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package feature

import "github.com/uptrace/bun/internal"
import "github.com/carautenbach/bun/internal"

type Feature = internal.Flag

Expand Down
8 changes: 4 additions & 4 deletions dialect/mssqldialect/dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
"golang.org/x/mod/semver"

"github.com/uptrace/bun"
"github.com/uptrace/bun/dialect"
"github.com/uptrace/bun/dialect/feature"
"github.com/uptrace/bun/dialect/sqltype"
"github.com/uptrace/bun/schema"
"github.com/carautenbach/bun/dialect"
"github.com/carautenbach/bun/dialect/feature"
"github.com/carautenbach/bun/dialect/sqltype"
"github.com/carautenbach/bun/schema"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion dialect/mssqldialect/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/uptrace/bun/dialect/mssqldialect
module github.com/carautenbach/bun/dialect/mssqldialect

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion dialect/mssqldialect/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mssqldialect
import (
"reflect"

"github.com/uptrace/bun/schema"
"github.com/carautenbach/bun/schema"
)

func scanner(typ reflect.Type) schema.ScannerFunc {
Expand Down
8 changes: 4 additions & 4 deletions dialect/mysqldialect/dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
"golang.org/x/mod/semver"

"github.com/uptrace/bun"
"github.com/uptrace/bun/dialect"
"github.com/uptrace/bun/dialect/feature"
"github.com/uptrace/bun/dialect/sqltype"
"github.com/uptrace/bun/schema"
"github.com/carautenbach/bun/dialect"
"github.com/carautenbach/bun/dialect/feature"
"github.com/carautenbach/bun/dialect/sqltype"
"github.com/carautenbach/bun/schema"
)

const datetimeType = "DATETIME"
Expand Down
2 changes: 1 addition & 1 deletion dialect/mysqldialect/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/uptrace/bun/dialect/mysqldialect
module github.com/carautenbach/bun/dialect/mysqldialect

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion dialect/mysqldialect/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mysqldialect
import (
"reflect"

"github.com/uptrace/bun/schema"
"github.com/carautenbach/bun/schema"
)

func scanner(typ reflect.Type) schema.ScannerFunc {
Expand Down
4 changes: 2 additions & 2 deletions dialect/pgdialect/append.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"time"
"unicode/utf8"

"github.com/uptrace/bun/dialect"
"github.com/uptrace/bun/schema"
"github.com/carautenbach/bun/dialect"
"github.com/carautenbach/bun/schema"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion dialect/pgdialect/array.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"reflect"

"github.com/uptrace/bun/schema"
"github.com/carautenbach/bun/schema"
)

type ArrayValue struct {
Expand Down
4 changes: 2 additions & 2 deletions dialect/pgdialect/array_scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"reflect"
"strconv"

"github.com/uptrace/bun/internal"
"github.com/uptrace/bun/schema"
"github.com/carautenbach/bun/internal"
"github.com/carautenbach/bun/schema"
)

func arrayScanner(typ reflect.Type) schema.ScannerFunc {
Expand Down
8 changes: 4 additions & 4 deletions dialect/pgdialect/dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"strings"

"github.com/uptrace/bun"
"github.com/uptrace/bun/dialect"
"github.com/uptrace/bun/dialect/feature"
"github.com/uptrace/bun/dialect/sqltype"
"github.com/uptrace/bun/schema"
"github.com/carautenbach/bun/dialect"
"github.com/carautenbach/bun/dialect/feature"
"github.com/carautenbach/bun/dialect/sqltype"
"github.com/carautenbach/bun/schema"
)

var pgDialect = New()
Expand Down
2 changes: 1 addition & 1 deletion dialect/pgdialect/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/uptrace/bun/dialect/pgdialect
module github.com/carautenbach/bun/dialect/pgdialect

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion dialect/pgdialect/hstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"reflect"

"github.com/uptrace/bun/schema"
"github.com/carautenbach/bun/schema"
)

type HStoreValue struct {
Expand Down
2 changes: 1 addition & 1 deletion dialect/pgdialect/hstore_scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"reflect"

"github.com/uptrace/bun/schema"
"github.com/carautenbach/bun/schema"
)

func hstoreScanner(typ reflect.Type) schema.ScannerFunc {
Expand Down
2 changes: 1 addition & 1 deletion dialect/pgdialect/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package pgdialect
import (
"reflect"

"github.com/uptrace/bun/schema"
"github.com/carautenbach/bun/schema"
)

func scanner(typ reflect.Type) schema.ScannerFunc {
Expand Down
4 changes: 2 additions & 2 deletions dialect/pgdialect/sqltype.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"net"
"reflect"

"github.com/uptrace/bun/dialect/sqltype"
"github.com/uptrace/bun/schema"
"github.com/carautenbach/bun/dialect/sqltype"
"github.com/carautenbach/bun/schema"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions dialect/sqlitedialect/dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"fmt"

"github.com/uptrace/bun"
"github.com/uptrace/bun/dialect"
"github.com/uptrace/bun/dialect/feature"
"github.com/uptrace/bun/dialect/sqltype"
"github.com/uptrace/bun/schema"
"github.com/carautenbach/bun/dialect"
"github.com/carautenbach/bun/dialect/feature"
"github.com/carautenbach/bun/dialect/sqltype"
"github.com/carautenbach/bun/schema"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion dialect/sqlitedialect/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/uptrace/bun/dialect/sqlitedialect
module github.com/carautenbach/bun/dialect/sqlitedialect

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion dialect/sqlitedialect/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package sqlitedialect
import (
"reflect"

"github.com/uptrace/bun/schema"
"github.com/carautenbach/bun/schema"
)

func scanner(typ reflect.Type) schema.ScannerFunc {
Expand Down
6 changes: 3 additions & 3 deletions driver/pgdriver/README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# pgdriver

[![PkgGoDev](https://pkg.go.dev/badge/github.com/uptrace/bun/driver/pgdriver)](https://pkg.go.dev/github.com/uptrace/bun/driver/pgdriver)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/carautenbach/bun/driver/pgdriver)](https://pkg.go.dev/github.com/carautenbach/bun/driver/pgdriver)

pgdriver is a database/sql driver for PostgreSQL based on [go-pg](https://github.com/go-pg/pg) code.

You can install it with:

```shell
go get github.com/uptrace/bun/driver/pgdriver
go get github.com/carautenbach/bun/driver/pgdriver
```

And then create a `sql.DB` using it:

```go
import _ "github.com/uptrace/bun/driver/pgdriver"
import _ "github.com/carautenbach/bun/driver/pgdriver"

dsn := "postgres://postgres:@localhost:5432/test"
db, err := sql.Open("pg", dsn)
Expand Down
2 changes: 1 addition & 1 deletion driver/pgdriver/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"

"github.com/stretchr/testify/require"
"github.com/uptrace/bun/driver/pgdriver"
"github.com/carautenbach/bun/driver/pgdriver"
)

func TestParseDSN(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion driver/pgdriver/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/uptrace/bun/driver/pgdriver"
"github.com/carautenbach/bun/driver/pgdriver"
)

func BenchmarkExec(b *testing.B) {
Expand Down
2 changes: 1 addition & 1 deletion driver/pgdriver/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/uptrace/bun/driver/pgdriver
module github.com/carautenbach/bun/driver/pgdriver

go 1.18

Expand Down
4 changes: 2 additions & 2 deletions driver/sqliteshim/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# sqliteshim

[![PkgGoDev](https://pkg.go.dev/badge/github.com/uptrace/bun/driver/sqliteshim)](https://pkg.go.dev/github.com/uptrace/bun/driver/sqliteshim)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/carautenbach/bun/driver/sqliteshim)](https://pkg.go.dev/github.com/carautenbach/bun/driver/sqliteshim)

sqliteshim automatically imports [modernc.org/sqlite](https://modernc.org/sqlite/) or
[mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) depending on your platform.
Expand All @@ -15,7 +15,7 @@ Otherwise it registers a driver that returns an error on unsupported platforms.
You can install sqliteshim with:

```shell
go get github.com/uptrace/bun/driver/sqliteshim
go get github.com/carautenbach/bun/driver/sqliteshim
```

And then create a `sql.DB`:
Expand Down
2 changes: 1 addition & 1 deletion driver/sqliteshim/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/uptrace/bun/driver/sqliteshim
module github.com/carautenbach/bun/driver/sqliteshim

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion driver/sqliteshim/sqliteshim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/uptrace/bun/driver/sqliteshim"
"github.com/carautenbach/bun/driver/sqliteshim"
)

func TestShim(t *testing.T) {
Expand Down
16 changes: 8 additions & 8 deletions example/basic/go.mod
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
module github.com/uptrace/bun/example/basic
module github.com/carautenbach/bun/example/basic

go 1.18

replace github.com/uptrace/bun => ../..

replace github.com/uptrace/bun/dbfixture => ../../dbfixture
replace github.com/carautenbach/bun/dbfixture => ../../dbfixture

replace github.com/uptrace/bun/extra/bundebug => ../../extra/bundebug
replace github.com/carautenbach/bun/extra/bundebug => ../../extra/bundebug

replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedialect
replace github.com/carautenbach/bun/dialect/sqlitedialect => ../../dialect/sqlitedialect

replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim
replace github.com/carautenbach/bun/driver/sqliteshim => ../../driver/sqliteshim

require (
github.com/uptrace/bun v1.1.10
github.com/uptrace/bun/dialect/sqlitedialect v1.1.10
github.com/uptrace/bun/driver/sqliteshim v1.1.10
github.com/uptrace/bun/extra/bundebug v1.1.10
github.com/carautenbach/bun/dialect/sqlitedialect v1.1.10
github.com/carautenbach/bun/driver/sqliteshim v1.1.10
github.com/carautenbach/bun/extra/bundebug v1.1.10
)

require (
Expand Down
Loading

0 comments on commit 84f93e6

Please sign in to comment.