gormutil

package
v0.0.0-...-4bcbab6 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(db *gorm.DB) (n int, err error)

Count : Count number of query results

func Exists

func Exists(db *gorm.DB) (exists bool, err error)

Exists : Check if matches more than zero

func RecordExists

func RecordExists(db *gorm.DB, where interface{}, tableName ...string) (exists bool, err error)

RecordExists : Check if the provided record does already exist

Types

This section is empty.

Jump to

Keyboard shortcuts

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