dql

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: 10 Imported by: 1

README

data-dql GoDoc

sql dql library for Go

Installation

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

Documentation

Overview

Package dql implements sql utility functions.

Usage

user := NewUser()
user.SetId("1")
user.SetName("admin")
d := dql.New(&dialect.MySQL{})
v, _ := d.SelectOne(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 {
	SelectOne(e entity.Interface) (dql string, arg interface{})
	SelectPage(dql string, pageable domain.Pageable) string
	SelectListBySift(e entity.Interface, sifts ...domain.Sift) (dql string, args []interface{}, err error)
	SelectCountBySift(e entity.Interface, sifts ...domain.Sift) (dql string, args []interface{}, err error)
}

Interface Interface.

func New

New new dql.Interface.

Jump to

Keyboard shortcuts

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