Categorygithub.com/tal-tech/torm
modulepackage
1.0.3-beta
Repository: https://github.com/tal-tech/torm.git
Documentation: pkg.go.dev

# README

简介


torm是基于xorm的mysql访问组件,在xorm基础上提供代码生成、索引查询方法、初始化管理等增强功能

特点

  • 支持原生xorm操作
  • 简单易使用
  • 自动生成表映射文件
  • 默认提供所有按索引查询方法,包括count、limit等

文档

[开发文档]

# Functions

add hook for every engine and statement.
add mysql without config file.
cast input to []interface{} type.
cast input to ParamIn type.
GetDbInstance returns DBDao instance.
GetDbInstanceWithCtx returns DBDao instance.If it's a stress test scenario,return benchmark_dbName.
No description provided by the author
NewTormLoggerAdapter creates an adapter for old xorm logger interface.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TormLogger is the default implment of ILogger.
TormLoggerAdapter wraps a Logger interface as LoggerContext interface.

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author