sorm

package module
v0.0.0-...-00c1370 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

README

A simple ORM framework written in Go.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

func NewEngine

func NewEngine(driver, source string) (e *Engine, err error)

func (*Engine) Close

func (e *Engine) Close()

func (*Engine) Migrate

func (e *Engine) Migrate(value any) error

Migrate table

func (*Engine) NewSession

func (e *Engine) NewSession() *session.Session

func (*Engine) Transaction

func (e *Engine) Transaction(f TxFunc) (result any, err error)

type TxFunc

type TxFunc func(*session.Session) (any, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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