orm

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Or

func Or(finder *zorm.Finder, cond string, values ...interface{}) *zorm.Finder

Or adds sql or condition example: Or(finder, "id>?", 1) --> or id>? args:[1] example: Or(finder, "id=? and name != ?", 10, "John") --> or (id=? and name!=?) args:[10, "John"]

func Order

func Order(finder *zorm.Finder, cols ...string) *zorm.Finder

Order adds order columns example: Order(finder, "col1 desc,col2", "col3") -- > order by col1 desc, col2, col3

func Where

func Where(finder *zorm.Finder, cond string, values ...interface{}) *zorm.Finder

Where for sql where example: Where(finder, "col1=? and col2=?", 1, "3") --> where col1=? and col2=? args:[1, "3"]

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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