Skip to content

nwhitehead/go-dbd-sqlite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-dbd-sqlite

go-dbd-sqlite is an sqlite driver implementation for go-dbi, a database interface for the Go programming language.

WARNING: THIS IS PRE-ALPHA SOFTWARE

Status

Pre-Alpha.

Overview

This package provides an sqlite driver for go-dbi. For more information about go-dbi, please check out the go-dbi project on github.

Installation

  1. Make sure you have a working Go environment. See the install instructions.
  2. Ensure goinstall is on your $PATH.
  3. Install gosqlite: $ goinstall gosqlite.googlecode.com/hg/sqlite
  4. Install go-dbd-sqlite: $ goinstall github.com/thomaslee/go-dbd-sqlite

Alternatively, you can clone the git repository & build it using make.

NOTE: goinstall does not currently support google code / Mercurial repositories. This step may need to be performed manually.

Usage

package main

import (
    dbi "github.com/thomaslee/go-dbi"
    _ "github.com/thomaslee/go-dbd-sqlite"
    "log"
)

func main() {
    conn, err := dbi.Connect("sqlite://./foo.db")
    if err != nil {
        log.Printf("error: unable to connect to the database: %s", err.String())
    }
    defer conn.Close()
}

License

This software is licensed under the terms of the MIT License.

Support

Please log defects and feature requests using the issue tracker on github.

About

go-dbd-sqlite was written by Tom Lee.

Follow me on Twitter or LinkedIn.

About

sqlite driver implementation for go-dbi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published