dbkit

package module
v0.0.0-...-426027c Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: MIT Imports: 6 Imported by: 0

README

Go GitHub go.mod Go version Go Report Card codecov License

DbKit

It's a simple MySQL compatible ORM for Go, it makes it easy to manage your database with structs.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	QueryTypeGet = "Get"
)

Functions

func NewCondition

func NewCondition() specs.Condition

func NewPayload

func NewPayload[T specs.Model]() specs.PayloadAugmented[T]

func Use

func Use[T specs.Model](ctx context.Context, connector specs.Connector) specs.Builder[T]

Types

type FieldRequiredError

type FieldRequiredError struct {
	// contains filtered or unexported fields
}

func NewFieldRequiredError

func NewFieldRequiredError(queryType string) *FieldRequiredError

func (*FieldRequiredError) Error

func (e *FieldRequiredError) Error() string

type NotFoundError

type NotFoundError struct {
	// contains filtered or unexported fields
}

func NewNotFoundError

func NewNotFoundError(model string) *NotFoundError

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

Jump to

Keyboard shortcuts

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