db

package
v0.0.0-...-ab261b6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2013 License: LGPL-3.0, LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

conf.go : GOWS configuration Copyright (C) 2013 Shaun Savage <savages@savages.com>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

db.go : GOWS database program Copyright (C) 2013 Shaun Savage <savages@savages.com>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvNullFloat

func ConvNullFloat(val sql.NullFloat64) float64

func ConvNullInt

func ConvNullInt(val sql.NullInt64) int64

func ConvNullStr

func ConvNullStr(val sql.NullString) string

func GetConf

func GetConf()

func GetDB

func GetDB() *sqlx.DB

func InitDB

func InitDB(dbname string, user string, passwd string) *sqlx.DB

func SetDB

func SetDB(db *sqlx.DB)

Types

type GowsConf

type GowsConf struct {
	Cfgidx uint32
	Name   string
	Rndkey float64
	Uuid   string
	Values map[string]interface{}
}

Jump to

Keyboard shortcuts

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