Skip to content

Commit

Permalink
module rename
Browse files Browse the repository at this point in the history
  • Loading branch information
kberezin-nshl committed Nov 10, 2023
1 parent bce3773 commit d45385a
Show file tree
Hide file tree
Showing 21 changed files with 46 additions and 46 deletions.
50 changes: 25 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
go-sqlite3
==========

[![Go Reference](https://pkg.go.dev/badge/github.com/mattn/go-sqlite3.svg)](https://pkg.go.dev/github.com/mattn/go-sqlite3)
[![GitHub Actions](https://github.com/mattn/go-sqlite3/workflows/Go/badge.svg)](https://github.com/mattn/go-sqlite3/actions?query=workflow%3AGo)
[![Go Reference](https://pkg.go.dev/badge/github.com/nutshelllabs/go-sqlite3.svg)](https://pkg.go.dev/github.com/nutshelllabs/go-sqlite3)
[![GitHub Actions](https://github.com/nutshelllabs/go-sqlite3/workflows/Go/badge.svg)](https://github.com/nutshelllabs/go-sqlite3/actions?query=workflow%3AGo)
[![Financial Contributors on Open Collective](https://opencollective.com/mattn-go-sqlite3/all/badge.svg?label=financial+contributors)](https://opencollective.com/mattn-go-sqlite3)
[![codecov](https://codecov.io/gh/mattn/go-sqlite3/branch/master/graph/badge.svg)](https://codecov.io/gh/mattn/go-sqlite3)
[![Go Report Card](https://goreportcard.com/badge/github.com/mattn/go-sqlite3)](https://goreportcard.com/report/github.com/mattn/go-sqlite3)
[![Go Report Card](https://goreportcard.com/badge/github.com/nutshelllabs/go-sqlite3)](https://goreportcard.com/report/github.com/nutshelllabs/go-sqlite3)

Latest stable version is v1.14 or later, not v2.

Expand Down Expand Up @@ -66,17 +66,17 @@ This package follows the official [Golang Release Policy](https://golang.org/doc

This package can be installed with the `go get` command:

go get github.com/mattn/go-sqlite3
go get github.com/nutshelllabs/go-sqlite3

_go-sqlite3_ is *cgo* package.
If you want to build your app using go-sqlite3, you need gcc.
However, after you have built and installed _go-sqlite3_ with `go install github.com/mattn/go-sqlite3` (which requires gcc), you can build your app without relying on gcc in future.
However, after you have built and installed _go-sqlite3_ with `go install github.com/nutshelllabs/go-sqlite3` (which requires gcc), you can build your app without relying on gcc in future.

***Important: because this is a `CGO` enabled package, you are required to set the environment variable `CGO_ENABLED=1` and have a `gcc` compile present within your path.***

# API Reference

API documentation can be found [here](http://godoc.org/github.com/mattn/go-sqlite3).
API documentation can be found [here](http://godoc.org/github.com/nutshelllabs/go-sqlite3).

Examples can be found under the [examples](./_example) directory.

Expand Down Expand Up @@ -179,7 +179,7 @@ go build --tags "icu json1 fts5 secure_delete"
| Secure Delete (FAST) | sqlite_secure_delete_fast | For more information see [PRAGMA secure_delete](https://www.sqlite.org/pragma.html#pragma_secure_delete) |
| Tracing / Debug | sqlite_trace | Activate trace functions |
| User Authentication | sqlite_userauth | SQLite User Authentication see [User Authentication](#user-authentication) for more information. |
| Virtual Tables | sqlite_vtable | SQLite Virtual Tables see [SQLite Official VTABLE Documentation](https://www.sqlite.org/vtab.html) for more information, and a [full example here](https://github.com/mattn/go-sqlite3/tree/master/_example/vtable) |
| Virtual Tables | sqlite_vtable | SQLite Virtual Tables see [SQLite Official VTABLE Documentation](https://www.sqlite.org/vtab.html) for more information, and a [full example here](https://github.com/nutshelllabs/go-sqlite3/tree/master/_example/vtable) |

# Compilation

Expand All @@ -196,7 +196,7 @@ Compile with:
go build --tags "android"
```

For more information see [#201](https://github.com/mattn/go-sqlite3/issues/201)
For more information see [#201](https://github.com/nutshelllabs/go-sqlite3/issues/201)

# ARM

Expand All @@ -209,8 +209,8 @@ env CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ \
```

Additional information:
- [#242](https://github.com/mattn/go-sqlite3/issues/242)
- [#504](https://github.com/mattn/go-sqlite3/issues/504)
- [#242](https://github.com/nutshelllabs/go-sqlite3/issues/242)
- [#504](https://github.com/nutshelllabs/go-sqlite3/issues/504)

# Cross Compile

Expand Down Expand Up @@ -300,8 +300,8 @@ go build --tags "libsqlite3 darwin"
```

Additional information:
- [#206](https://github.com/mattn/go-sqlite3/issues/206)
- [#404](https://github.com/mattn/go-sqlite3/issues/404)
- [#206](https://github.com/nutshelllabs/go-sqlite3/issues/206)
- [#404](https://github.com/nutshelllabs/go-sqlite3/issues/404)

## Windows

Expand All @@ -327,21 +327,21 @@ For example the TDM-GCC Toolchain can be found [here](https://jmeubank.github.io
go build -ldflags '-extldflags=-fno-PIC'
```

More details see [#120](https://github.com/mattn/go-sqlite3/issues/120)
More details see [#120](https://github.com/nutshelllabs/go-sqlite3/issues/120)

- Can't build go-sqlite3 on windows 64bit.
> Probably, you are using go 1.0, go1.0 has a problem when it comes to compiling/linking on windows 64bit.
> See: [#27](https://github.com/mattn/go-sqlite3/issues/27)
> See: [#27](https://github.com/nutshelllabs/go-sqlite3/issues/27)
- `go get github.com/mattn/go-sqlite3` throws compilation error.
- `go get github.com/nutshelllabs/go-sqlite3` throws compilation error.
`gcc` throws: `internal compiler error`
Remove the download repository from your disk and try re-install with:
```bash
go install github.com/mattn/go-sqlite3
go install github.com/nutshelllabs/go-sqlite3
```
# User Authentication
Expand Down Expand Up @@ -479,11 +479,11 @@ For an example, see [dinedal/go-sqlite3-extension-functions](https://github.com/
- Getting insert error while query is opened.
> You can pass some arguments into the connection string, for example, a URI.
> See: [#39](https://github.com/mattn/go-sqlite3/issues/39)
> See: [#39](https://github.com/nutshelllabs/go-sqlite3/issues/39)
- Do you want to cross compile? mingw on Linux or Mac?
> See: [#106](https://github.com/mattn/go-sqlite3/issues/106)
> See: [#106](https://github.com/nutshelllabs/go-sqlite3/issues/106)
> See also: http://www.limitlessfx.com/cross-compile-golang-app-for-windows-from-linux.html
- Want to get time.Time with current locale
Expand All @@ -492,7 +492,7 @@ For an example, see [dinedal/go-sqlite3-extension-functions](https://github.com/
- Can I use this in multiple routines concurrently?
Yes for readonly. But not for writable. See [#50](https://github.com/mattn/go-sqlite3/issues/50), [#51](https://github.com/mattn/go-sqlite3/issues/51), [#209](https://github.com/mattn/go-sqlite3/issues/209), [#274](https://github.com/mattn/go-sqlite3/issues/274).
Yes for readonly. But not for writable. See [#50](https://github.com/nutshelllabs/go-sqlite3/issues/50), [#51](https://github.com/nutshelllabs/go-sqlite3/issues/51), [#209](https://github.com/nutshelllabs/go-sqlite3/issues/209), [#274](https://github.com/nutshelllabs/go-sqlite3/issues/274).
- Why I'm getting `no such table` error?

Expand All @@ -507,16 +507,16 @@ For an example, see [dinedal/go-sqlite3-extension-functions](https://github.com/
Note that if the last database connection in the pool closes, the in-memory database is deleted. Make sure the [max idle connection limit](https://golang.org/pkg/database/sql/#DB.SetMaxIdleConns) is > 0, and the [connection lifetime](https://golang.org/pkg/database/sql/#DB.SetConnMaxLifetime) is infinite.

For more information see:
* [#204](https://github.com/mattn/go-sqlite3/issues/204)
* [#511](https://github.com/mattn/go-sqlite3/issues/511)
* [#204](https://github.com/nutshelllabs/go-sqlite3/issues/204)
* [#511](https://github.com/nutshelllabs/go-sqlite3/issues/511)
* https://www.sqlite.org/sharedcache.html#shared_cache_and_in_memory_databases
* https://www.sqlite.org/inmemorydb.html#sharedmemdb

- Reading from database with large amount of goroutines fails on OSX.

OS X limits OS-wide to not have more than 1000 files open simultaneously by default.

For more information, see [#289](https://github.com/mattn/go-sqlite3/issues/289)
For more information, see [#289](https://github.com/nutshelllabs/go-sqlite3/issues/289)

- Trying to execute a `.` (dot) command throws an error.

Expand All @@ -525,7 +525,7 @@ For an example, see [dinedal/go-sqlite3-extension-functions](https://github.com/

You need to implement the feature or call the sqlite3 cli.

More information see [#305](https://github.com/mattn/go-sqlite3/issues/305).
More information see [#305](https://github.com/nutshelllabs/go-sqlite3/issues/305).

- Error: `database is locked`

Expand All @@ -544,14 +544,14 @@ For an example, see [dinedal/go-sqlite3-extension-functions](https://github.com/
db.SetMaxOpenConns(1)
```

For more information, see [#209](https://github.com/mattn/go-sqlite3/issues/209).
For more information, see [#209](https://github.com/nutshelllabs/go-sqlite3/issues/209).

## Contributors

### Code Contributors

This project exists thanks to all the people who [[contribute](CONTRIBUTING.md)].
<a href="https://github.com/mattn/go-sqlite3/graphs/contributors"><img src="https://opencollective.com/mattn-go-sqlite3/contributors.svg?width=890&button=false" /></a>
<a href="https://github.com/nutshelllabs/go-sqlite3/graphs/contributors"><img src="https://opencollective.com/mattn-go-sqlite3/contributors.svg?width=890&button=false" /></a>

### Financial Contributors

Expand Down
2 changes: 1 addition & 1 deletion _example/custom_driver_name/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ endif
all : $(TARGET)

$(TARGET) : main.go
go build -ldflags="-X 'github.com/mattn/go-sqlite3.driverName=my-sqlite3'"
go build -ldflags="-X 'github.com/nutshelllabs/go-sqlite3.driverName=my-sqlite3'"

clean :
rm -f $(TARGET)
2 changes: 1 addition & 1 deletion _example/custom_driver_name/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"database/sql"

_ "github.com/mattn/go-sqlite3"
_ "github.com/nutshelllabs/go-sqlite3"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _example/custom_func/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"math"
"math/rand"

sqlite "github.com/mattn/go-sqlite3"
sqlite "github.com/nutshelllabs/go-sqlite3"
)

// Computes x^y
Expand Down
2 changes: 1 addition & 1 deletion _example/fuzz/fuzz_openexec.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"database/sql"
"io/ioutil"

_ "github.com/mattn/go-sqlite3"
_ "github.com/nutshelllabs/go-sqlite3"
)

func FuzzOpenExec(data []byte) int {
Expand Down
2 changes: 1 addition & 1 deletion _example/hook/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"os"

"github.com/mattn/go-sqlite3"
"github.com/nutshelllabs/go-sqlite3"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _example/limit/limit.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"strings"

"github.com/mattn/go-sqlite3"
"github.com/nutshelllabs/go-sqlite3"
)

func createBulkInsertQuery(n int, start int) (query string, args []interface{}) {
Expand Down
2 changes: 1 addition & 1 deletion _example/mod_regexp/extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"database/sql"
"fmt"
"github.com/mattn/go-sqlite3"
"github.com/nutshelllabs/go-sqlite3"
"log"
)

Expand Down
2 changes: 1 addition & 1 deletion _example/mod_vtable/extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"log"

"github.com/mattn/go-sqlite3"
"github.com/nutshelllabs/go-sqlite3"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _example/simple/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"database/sql"
"fmt"
_ "github.com/mattn/go-sqlite3"
_ "github.com/nutshelllabs/go-sqlite3"
"log"
"os"
)
Expand Down
2 changes: 1 addition & 1 deletion _example/trace/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
"os"

sqlite3 "github.com/mattn/go-sqlite3"
sqlite3 "github.com/nutshelllabs/go-sqlite3"
)

func traceCallback(info sqlite3.TraceInfo) int {
Expand Down
2 changes: 1 addition & 1 deletion _example/vtable/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"log"

"github.com/mattn/go-sqlite3"
"github.com/nutshelllabs/go-sqlite3"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _example/vtable/vtable.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"io/ioutil"
"net/http"

"github.com/mattn/go-sqlite3"
"github.com/nutshelllabs/go-sqlite3"
)

type githubRepo struct {
Expand Down
2 changes: 1 addition & 1 deletion _example/vtable_eponymous_only/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"log"

"github.com/mattn/go-sqlite3"
"github.com/nutshelllabs/go-sqlite3"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _example/vtable_eponymous_only/vtable.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/mattn/go-sqlite3"
"github.com/nutshelllabs/go-sqlite3"
)

type seriesModule struct{}
Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This works as a driver for database/sql.
Installation
go get github.com/mattn/go-sqlite3
go get github.com/nutshelllabs/go-sqlite3
Supported Types
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/mattn/go-sqlite3
module github.com/nutshelllabs/go-sqlite3

go 1.16

Expand Down
2 changes: 1 addition & 1 deletion sqlite3-binding.c
Original file line number Diff line number Diff line change
Expand Up @@ -164019,7 +164019,7 @@ typedef union {
struct FrameBound yy595;
} YYMINORTYPE;
#ifndef YYSTACKDEPTH
#define YYSTACKDEPTH 100
#define YYSTACKDEPTH 10000
#endif
#define sqlite3ParserARG_SDECL
#define sqlite3ParserARG_PDECL
Expand Down
4 changes: 2 additions & 2 deletions sqlite3.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ const (
)

// This variable can be replaced with -ldflags like below:
// go build -ldflags="-X 'github.com/mattn/go-sqlite3.driverName=my-sqlite3'"
// go build -ldflags="-X 'github.com/nutshelllabs/go-sqlite3.driverName=my-sqlite3'"
var driverName = "sqlite3"

func init() {
Expand Down Expand Up @@ -885,7 +885,7 @@ func (c *SQLiteConn) exec(ctx context.Context, query string, args []namedValue)
s.Close()
if tail == "" {
if res == nil {
// https://github.com/mattn/go-sqlite3/issues/963
// https://github.com/nutshelllabs/go-sqlite3/issues/963
res = &SQLiteResult{0, 0}
}
return res, nil
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ func TestTimezoneConversion(t *testing.T) {
}

// TODO: Execer & Queryer currently disabled
// https://github.com/mattn/go-sqlite3/issues/82
// https://github.com/nutshelllabs/go-sqlite3/issues/82
func TestExecer(t *testing.T) {
tempFilename := TempFilename(t)
defer os.Remove(tempFilename)
Expand Down
2 changes: 1 addition & 1 deletion upgrade/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/mattn/go-sqlite3/upgrade
module github.com/nutshelllabs/go-sqlite3/upgrade

go 1.16

Expand Down

0 comments on commit d45385a

Please sign in to comment.