mysql

package module
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mysql is liteorm's MySQL backend over go-sql-driver/mysql (database/sql). It wires the MySQL dialect (ON DUPLICATE KEY upsert, backtick quoting, LastInsertId) and normalizes MySQLError numbers to liteorm sentinels.

License note: go-sql-driver/mysql is MPL-2.0 (file-level copyleft). It is imported unmodified here; do not edit the driver's files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(ctx context.Context, dsn string, opts ...liteorm.Option) (*liteorm.DB, error)

Open opens a MySQL database for the given DSN and returns a liteorm.DB on the MySQL dialect.

Types

This section is empty.

Jump to

Keyboard shortcuts

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