mysql

package
v0.0.0-...-e85a4bd Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mysql provides a connector to vulndb via MySQL.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenRead

func OpenRead(dsn string) (*sql.DB, error)

OpenRead opens a connection to MySQL for reading.

See https://github.com/go-sql-driver/mysql#parameters for dsn details.

func OpenWrite

func OpenWrite(dsn string) (*sql.DB, error)

OpenWrite opens a connection to MySQL for writing.

See https://github.com/go-sql-driver/mysql#parameters for dsn details.

func SetParams

func SetParams(dsn string, params url.Values) string

SetParams takes a DSN as input and sets the desired parameters for the MySQL connection, e.g. parseTime=true.

See https://github.com/go-sql-driver/mysql#parameters for details.

Types

This section is empty.

Jump to

Keyboard shortcuts

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