🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

github.com/nwhitehead/go-dbd-sqlite

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/nwhitehead/go-dbd-sqlite

v0.0.0-20110104144359-cf87bbbe25e6
Source
Go
Version published
Created
Source

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

  • Make sure you have a working Go environment. See the install instructions.
  • Ensure goinstall is on your $PATH.
  • Install gosqlite: $ goinstall gosqlite.googlecode.com/hg/sqlite
  • 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.

FAQs

Package last updated on 04 Jan 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts