ch.5.5

command
v0.0.0-...-d87ffed Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2017 License: BSD-3-Clause Imports: 5 Imported by: 0

README

Set up for ch.5.5

  • Step 1) Download and install sqlite 3.

  • Step 2) Run sqlite3 foo.db to create a databased called foo.

  • Step 3) Create the tables found in schema.sql in sqlite.

    Read and run sql statements

      sqlite> .read schema.sql
    

    Show tables

      sqlite> .tables
      userinfo
      userdetail
    
  • 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

Overview

Example code for Chapter 5.5 Purpose is to show to use BeeDB ORM for basic CRUD operations for sqlite3

Jump to

Keyboard shortcuts

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