king_orm

package module
v0.0.0-...-78c2ed5 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

README

king-orm

king-orm介绍

一个简单好用的GO ORM插件。让新手更容易上手,目前king-orm只支持mysql语法,后续会支持更多的数据库。敬请期待

  • 优点

  • 缺点

king-orm使用方法

待补充....

king-orm更新日志
  • 2020-09-01
    • 增加xml文件检验。解决之前文件格式不正确导致chan堵塞,程序无任何提示。
    • 增加sqlMapper文件id重复检测。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DollarTokenHandler

func DollarTokenHandler(sqlStr string, params map[string]interface{}) (sql string)

${xx}处理

func GetExecSqlInfo

func GetExecSqlInfo(sqlStr string, params map[string]interface{}) (sql string, sqlParams []interface{}, err error)

获取执行SQL信息

func NewStack

func NewStack() *stack

Types

type Method

type Method struct {
	Namespace string
	Id        string
	Sql       string
}

方法

type SqlMapping

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

func ReaderConfigBuilder

func ReaderConfigBuilder(pathDir string) (sqlMapping *SqlMapping, err error)

加载xml

func (*SqlMapping) GetMethodSql

func (s *SqlMapping) GetMethodSql(id string) (v *Method, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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