database

package
v0.0.0-...-955d332 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseDB

func CloseDB(db *sql.DB)

func CreateTable

func CreateTable(db *sql.DB, query string)

func GetAllDataInTable

func GetAllDataInTable(db *sql.DB, query string) *sql.Rows

func InsertTable

func InsertTable(db *sql.DB, query string, args ...interface{})

func OpenConnectionWithDatabase

func OpenConnectionWithDatabase(driverDB, fileDB string) *sql.DB

func PrintRowsInConsole

func PrintRowsInConsole(data *sql.Rows, game *entity.Game)

func RemoveDB

func RemoveDB(pathFile string)

func RemoveData

func RemoveData(db *sql.DB, query string, args ...interface{})

func UpdateData

func UpdateData(db *sql.DB, query string, args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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