Discover Packages
github.com/oppgame/database
package
module
Version:
v0.0.0-...-e5e9728
Opens a new window with list of versions in this module.
Published: Sep 21, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
database
database library to store the models and database controllers
Expand ▾
Collapse ▴
Documentation
¶
DB the databse when conneted
Connect function to make database connection. After connect the
first action to perform is migrations execution, that will make
table alteration when it's necessary
type Card struct {
gorm .Model
Value int `json:"value"`
Game Game `json:"game"`
}
Card data struct to map the Card table
Game data struct to map the Game table
Match data struct to map the Match table
Move data struct to map the Move table
Player data struct to map the Player table
Source Files
¶
Click to show internal directories.
Click to hide internal directories.