query

package
v1.0.0-beta.16 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCreateColumnQuery

func BuildCreateColumnQuery(column objects.Column, isPrimary bool) (q string, err error)

----- Column ----

func BuildCreatePolicyQuery

func BuildCreatePolicyQuery(policy objects.Policy) string

func BuildCreateRoleQuery

func BuildCreateRoleQuery(role objects.Role) string

func BuildCreateTableQuery

func BuildCreateTableQuery(newTable objects.Table) (string, error)

func BuildDeleteColumnQuery

func BuildDeleteColumnQuery(column objects.Column) (q string)

func BuildDeletePolicyQuery

func BuildDeletePolicyQuery(policy objects.Policy) string

func BuildDeleteRoleQuery

func BuildDeleteRoleQuery(role objects.Role) string

func BuildDeleteTableQuery

func BuildDeleteTableQuery(table objects.Table, cascade bool) string

func BuildFkQuery

func BuildFkQuery(updateType objects.UpdateRelationType, relation *objects.TablesRelationship) (string, error)

func BuildFunctionQuery

func BuildFunctionQuery(action FunctionAction, fn *objects.Function) (string, error)

func BuildUpdateColumnQuery

func BuildUpdateColumnQuery(oldColumn, newColumn objects.Column, updateItem objects.UpdateColumnItem) (q string)

func BuildUpdatePolicyQuery

func BuildUpdatePolicyQuery(policy objects.Policy, updatePolicyParams objects.UpdatePolicyParam) string

func BuildUpdateRoleQuery

func BuildUpdateRoleQuery(newRole objects.Role, updateRoleParam objects.UpdateRoleParam) string

func BuildUpdateTableQuery

func BuildUpdateTableQuery(newTable objects.Table, updateItem objects.UpdateTableParam) string

Types

type FunctionAction

type FunctionAction string
const (
	FunctionActionCreate FunctionAction = "create"
	FunctionActionUpdate FunctionAction = "update"
	FunctionActionDelete FunctionAction = "delete"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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