dml

package
v0.0.0-...-82e7740 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: MIT Imports: 5 Imported by: 1

README

data-dml GoDoc

sql dml library for Go

Installation

go get gopkg.in/goyy/goyy.v0/data/dml

Documentation

Overview

Package dml implements sql utility functions.

Usage

user := NewUser()
user.SetId("1")
user.SetName("admin")
d := dml.New(&dialect.MySQL{})
v, _ := d.Insert(user)
fmt.Println(v)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Update(e entity.Interface) (dml string, args []interface{})
	Insert(e entity.Interface) (dml string, args []interface{})
	Delete(e entity.Interface) (dml string, arg interface{})
	Disable(e entity.Interface) (dml string, arg interface{})
}

Interface dml interface.

func New

New new dml.interface.

Jump to

Keyboard shortcuts

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