cruda

package
v0.0.0-...-8ac8841 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateModel

func MigrateModel[T any](v *CrudConn, model T) error

Types

type BaseModel

type BaseModel struct {
	ID        uint           `json:"id" gorm:"primaryKey"`
	CreatedAt time.Time      `json:"created_at"`
	UpdatedAt time.Time      `json:"updated_at"`
	DeletedAt gorm.DeletedAt `json:"deleted_at" gorm:"index"`
}

type CrudConn

type CrudConn struct {
	Db *gorm.DB
	// contains filtered or unexported fields
}

func NewCrudaConn

func NewCrudaConn(conn *nex.Conn) *CrudConn

func (*CrudConn) AllocDatabase

func (v *CrudConn) AllocDatabase(name string) (string, error)

Jump to

Keyboard shortcuts

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