spalkDB

package module
v0.0.0-...-4dcf8c6 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2018 License: BSD-3-Clause Imports: 8 Imported by: 0

README

spalkDB

utility to make dbr more user friendly

Go Report Card Travis Build

Documentation

Overview

Package spalkDB provides a utility for easily inserting structs into a database

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapStruct

func MapStruct(b interface{}, cols []string, value interface{}) func() (sql.Result, error)

MapStruct marshalls a struct into a database query, for use with gocraft/dbr the first parameter must satisfy Builder, or be a dbr.InsertBuilder The last parameter must be a struct

Types

This section is empty.

Jump to

Keyboard shortcuts

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