sqlx

package
v0.0.0-...-fa376ca Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Json

type Json[T any] struct {
	Val T
}

Json is a generic struct for encoding and decoding JSON values, implementing the driver.Valuer and sql.Scanner interfaces.

func (*Json[T]) Marshal

func (j *Json[T]) Marshal() ([]byte, error)

func (*Json[T]) Scan

func (j *Json[T]) Scan(src any) error

func (*Json[T]) Unmarshal

func (j *Json[T]) Unmarshal(data []byte) error

func (*Json[T]) Value

func (j *Json[T]) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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