command
Version:
v0.0.0-...-7288d7d
Opens a new window with list of versions in this module.
Published: Sep 5, 2019
License: BSD-3-Clause
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Set up for ch.5.3
-
Step 1) Download and install sqlite 3.
-
Step 2) Run sqlite3 foo.db
to create a databased called foo
.
-
Step 3) Create the userinfo
table in sqlite using schema.sql
.
Read and run sql statements
sqlite> .read schema.sql
Show tables
sqlite> .tables
userinfo
-
Step 4) Exit sqlite.
sqlite> .exit
-
Step 5) Run go get
to download and install remote packages.
-
Step 6) Run the program with go run main.go
Documentation
¶
Example code for Chapter 5.3 from "Build Web Application with Golang"
Purpose: Shows how to run simple CRUD operations using a sqlite driver
Source Files
¶
Click to show internal directories.
Click to hide internal directories.