model

package
v6.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package model 管理数据模型

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Models

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

Models 数据模型管理

func NewModels

func NewModels(d core.Dialect) *Models

NewModels 声明 Models 变量

func (*Models) Clear

func (ms *Models) Clear()

Clear 清除所有的 core.Model 缓存

func (*Models) New

func (ms *Models) New(obj core.TableNamer) (*core.Model, error)

New 从一个 obj 声明 core.Model 实例

obj 可以是一个结构体或是指针。

func (*Models) NewEngine

func (ms *Models) NewEngine(e stdEngine, tablePrefix string) core.Engine

NewEngine 声明实现 core.Engine 接口的实例

Jump to

Keyboard shortcuts

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