mysqljson

package
v0.0.0-...-2c5d86c Latest Latest
Warning

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

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

Documentation

Overview

Package mysqljson provides small scanner/value types for MySQL JSON columns.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int64s

type Int64s []int64

Int64s stores an int64 slice in a MySQL JSON column.

func (Int64s) GormDataType

func (Int64s) GormDataType() string

GormDataType tells GORM to keep Int64s as a JSON column.

func (*Int64s) Scan

func (s *Int64s) Scan(value any) error

Scan loads Int64s from a MySQL JSON column.

func (Int64s) Value

func (s Int64s) Value() (driver.Value, error)

Value serializes Int64s for database writes.

type Strings

type Strings []string

Strings stores a string slice in a MySQL JSON column.

func (Strings) GormDataType

func (Strings) GormDataType() string

GormDataType tells GORM to keep Strings as a JSON column.

func (*Strings) Scan

func (s *Strings) Scan(value any) error

Scan loads Strings from a MySQL JSON column.

func (Strings) Value

func (s Strings) Value() (driver.Value, error)

Value serializes Strings for database writes.

Jump to

Keyboard shortcuts

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