postgres

package
v1.8.12 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZeroTimeUCT     = "0001-01-01 00:00:00"
	ZeroTimeUCTZone = ZeroTimeUCT + "+00:00:00"
	ZeroTimeCST     = "0001-01-01 08:05:43"
	ZeroTimeCSTZone = ZeroTimeCST + "+08:05:43"
)
View Source
const (
	NotDeletedUCT = dbi.ColumnDeletedAt + " = '" + ZeroTimeUCT + "'"
	NotDeletedCST = dbi.ColumnDeletedAt + " = '" + ZeroTimeCST + "'"
)
View Source
const (
	WithNotDeletedUCT = ` AND ` + NotDeletedUCT
	WithNotDeletedCST = ` AND ` + NotDeletedUCT
)
View Source
const (
	// 创建一个删除指定用户名的public schema下的表的函数
	DeleteTablesFunc = `` /* 339-byte string literal not displayed */

	DeleteTables = `SELECT del_tabs('postgres')`
	// 创建一个清空指定用户名的public schema下的表的函数
	TruncateTablesFunc = `` /* 378-byte string literal not displayed */

	TruncateTables = `SELECT truncate_tables('postgres')`
)

Variables

This section is empty.

Functions

func ExistsByFilterExpressions

func ExistsByFilterExpressions(db *sql.DB, tableName string, filters dbi.FilterExprs) (bool, error)

func IsDuplicate

func IsDuplicate(err error) bool

func Now

func Now() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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