Categorygithub.com/Daskott/gorm-sqlite-cipher
modulepackage
0.2.1
Repository: https://github.com/daskott/gorm-sqlite-cipher.git
Documentation: pkg.go.dev

# README

gorm-sqlite-cipher

GoDoc Reference Go Report Card

Description

Go sqlite3 driver for GORM with an AES-256 encrypted sqlite3 database conforming to the built-in database/sql interface. It is based on:

SQLite itself is part of SQLCipher.

Installation

This package can be installed with the go get command:

go get github.com/jackfr0st13/gorm-sqlite-cipher

USAGE

import (
  sqliteEncrypt "github.com/jackfr0st13/gorm-sqlite-cipher"
  "gorm.io/gorm"
)
key := "passphrase"
dbname := "go-sqlcipher.sqlite"
dbnameWithDSN := dbname + fmt.Sprintf("?_pragma_key=%s&_pragma_cipher_page_size=4096", key)
db, err := gorm.Open(sqliteEncrypt.Open(dbnameWithDSN), &gorm.Config{})

License

The code of the originating packages is covered by their respective licenses. See LICENSE file for details.

# Functions

No description provided by the author

# Constants

DriverName is the default driver name for SQLite.

# Variables

No description provided by the author

# Structs

No description provided by the author
No description provided by the author