db

command
v0.0.0-...-6cb28ed Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 6 Imported by: 0

README

db

概述

该文件夹为使用gorm-gen工具自动生成model和query文件夹

使用方法

1. 配置数据源

在db目录下面创建一个db.yaml文件,内容如下:

database:
  host: 60.204.233.80
  port: 3306
  user: root
  password: Password(l4m-?9C7
  dbname: trans_demo
2. 生成model和query文件夹
cd ./db
go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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