package
Version:
v0.0.0-...-3da28a4
Opens a new window with list of versions in this module.
Published: Nov 27, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewConnectMySQL() (*DB, error)
Start DB Connection
Use MySQL.
Write SQL Schema
Used:
f, err := os.Create("schema.sql")
if err != nil {
log.Fatalf("create migrate file: %v", err)
}
if err := db.WriteSchema(ctx, f); err != nil {
log.Fatalf("failed %v", err)
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.