Categorygithub.com/soedev/soego-component/egorm
modulepackage
1.0.4
Repository: https://github.com/soedev/soego-component.git
Documentation: pkg.go.dev

# README

egorm 组件使用指南

简介

gorm 进行了轻量封装,并提供了以下功能:

  • 规范了标准配置格式,提供了统一的 Load().Build() 方法。
  • 支持自定义拦截器
  • 提供了默认的 Debug 拦截器,开启 Debug 后可输出 Request、Response 至终端。
  • 提供了默认的 Metric 拦截器,开启后可采集 Prometheus 指标数据
  • 提供了默认的 OpenTelemetry 拦截器,开启后可采集 Tracing Span 数据

快速上手

数据库使用样例可参考 example

# Packages

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

# Functions

BuildQuery 根据conds构建sql和绑定的参数.
DefaultConfig 返回默认配置.
DefaultContainer ...
Load ...
No description provided by the author
WithContext ...
WithDebug 调试模式.
WithDialect dialect.
WithDSN 设置dsn.
WithDSNParser 设置自定义dsnParser.
WithInterceptor 设置自定义拦截器.
No description provided by the author
No description provided by the author

# Constants

PackageName ...

# Variables

ErrRecordNotFound returns a "record not found error".

# Structs

No description provided by the author
Container ...

# Interfaces

Processor ...

# Type aliases

No description provided by the author
Component ...
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Handler ...
Interceptor ...
No description provided by the author
No description provided by the author
No description provided by the author
Option 可选项.
No description provided by the author