gorm

command
v0.0.0-...-4cf218f Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: MIT Imports: 7 Imported by: 0

README

gorm

Overview

Sample code using gorm to access database.

Getting Started

  1. Start mysql container
docker-compose up -d mysql
  1. Run the code
go run gorm/main.go
If you want to access database
  1. Run exec command
docker-compose exec mysql bash
  1. Connect to the server
mysql -h 127.0.0.1 -P 3306 -u root -p

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