Skip to content

ar-sandbox3/level3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

level3

This is a way to solve the level3 challenge, at several few commits, this provides a starter template for dealing with basic operations.

To use this code, you need to change the DB connection string used in level3.go.

In the Initialize function:

// Initialize creates a new connection to the database and runs the schema.
func Initialize() (*sqlx.DB, error) {
	// Connect to the database. Please change this to your own database.
	db, err := sqlx.Connect("mysql", "root:password@tcp(localhost:3306)/level3?multiStatements=true")

Tip

You can run a MySQL server locally using docker.

For example, binding to the host network:

docker run --rm -it --net=host -v `pwd`/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=level3 mysql:8

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages