cgofreesqlite

package
v0.0.0-...-6fd8457 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package cgofreesqlite package provides a CGO free implementation of the sqlite3 driver. This wraps the modernc.org/sqlite driver and adds the PRAGMA foreign_keys = ON; statement to the connection initialization as well as registering the driver with the sql package as "sqlite3" for compatibility with entgo.io

NOTE: This does come with around a 30% performance hit compared to the CGO version of the driver. however it greatly simplifies the build process and allows for cross compilation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CGOFreeSqliteDriver

type CGOFreeSqliteDriver struct {
	*sqlite.Driver
}

func (CGOFreeSqliteDriver) Open

func (d CGOFreeSqliteDriver) Open(name string) (conn driver.Conn, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL