Categorygithub.com/StinkyPeach/sqlite
modulepackage
1.1.5
Repository: https://github.com/stinkypeach/sqlite.git
Documentation: pkg.go.dev

# README

GORM Sqlite Cipher Driver

Description

Go SQLite3 driver for GORM by encrypting the SQLite3 database with AES-256 conforming to the built-in database / SQL interface

USAGE

import (
  "fmt"
  sqlite "github.com/StinkyPeach/sqlite"
  "gorm.io/gorm"
)

key := "your's key"
dbName := "test.db"
DSN := dbName + fmt.Sprintf("?_pragma_key=%s&_pragma_cipher_page_size=4096", key)
db, err := gorm.Open(sqlite.Open(DSN), &gorm.Config{})

Checkout https://gorm.io for details.

Acknowledgement

# 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