dependabot[bot] 6fb1a891e1 build(deps): bump modernc.org/sqlite from 1.17.0 to 1.17.1
Bumps [modernc.org/sqlite](https://gitlab.com/cznic/sqlite) from 1.17.0 to 1.17.1.
- [Release notes](https://gitlab.com/cznic/sqlite/tags)
- [Commits](https://gitlab.com/cznic/sqlite/compare/v1.17.0...v1.17.1)

---
updated-dependencies:
- dependency-name: modernc.org/sqlite
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-05 11:26:08 +00:00
2022-04-05 18:04:19 +03:00
2021-12-12 13:38:45 +01:00
2022-04-05 18:04:19 +03:00
2022-04-27 13:57:37 +03:00
2022-04-05 18:04:19 +03:00
2022-04-05 18:04:19 +03:00
2021-12-13 00:02:38 +01:00
2020-10-12 22:09:42 +03:00
2022-03-29 22:05:40 +03:00
2021-09-06 20:57:30 +02:00
2021-09-06 20:57:30 +02:00
2022-01-19 15:39:24 +01:00
2021-12-12 23:56:20 +01:00

Tests badge

go-sqlite

This is a pure-Go SQLite driver for Golang's native database/sql package. The driver has Go-based implementation of SQLite embedded in itself (so, you don't need to install SQLite separately)

Version support:

Version SQLite Go 1.16 support Go 1.17+ support
v1.14.8 3.38.0
v1.15.0 3.38.1
v1.15.1 3.38.1
v1.15.2 3.38.2

Usage

Example

package main

import (
	"database/sql"
	"log"

	_ "github.com/glebarez/go-sqlite"
)

func main() {
	// connect
	db, err := sql.Open("sqlite", ":memory:")
	if err != nil {
		log.Fatal(err)
	}

	// get SQLite version
	_ := db.QueryRow("select sqlite_version()")
}

Connection string examples

  • in-memory SQLite: ":memory:"
  • on-disk SQLite: "path/to/some.db"
  • Foreign-key constraint activation: ":memory:?_pragma=foreign_keys(1)"

Settings PRAGMAs in connection string

Any SQLIte pragma can be preset for a Database connection using _pragma query parameter. Examples:

Multiple PRAGMAs can be specified, e.g.:
path/to/some.db?_pragma=busy_timeout(5000)&_pragma=journal_mode(WAL)

Description
pure-Go SQLite driver for Go (SQLite embedded)
Readme BSD-3-Clause 103 MiB
Languages
Go 100%