Documentation ¶
Index ¶
- func BuildCreateColumnQuery(column objects.Column, isPrimary bool) (q string, err error)
- func BuildCreatePolicyQuery(policy objects.Policy) string
- func BuildCreateRoleQuery(role objects.Role) string
- func BuildCreateTableQuery(newTable objects.Table) (string, error)
- func BuildDeleteColumnQuery(column objects.Column) (q string)
- func BuildDeletePolicyQuery(policy objects.Policy) string
- func BuildDeleteRoleQuery(role objects.Role) string
- func BuildDeleteTableQuery(table objects.Table, cascade bool) string
- func BuildFkQuery(updateType objects.UpdateRelationType, relation *objects.TablesRelationship) (string, error)
- func BuildFunctionQuery(action FunctionAction, fn *objects.Function) (string, error)
- func BuildUpdateColumnQuery(oldColumn, newColumn objects.Column, updateItem objects.UpdateColumnItem) (q string)
- func BuildUpdatePolicyQuery(policy objects.Policy, updatePolicyParams objects.UpdatePolicyParam) string
- func BuildUpdateRoleQuery(newRole objects.Role, updateRoleParam objects.UpdateRoleParam) string
- func BuildUpdateTableQuery(newTable objects.Table, updateItem objects.UpdateTableParam) string
- type FunctionAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCreateColumnQuery ¶
----- Column ----
func BuildCreatePolicyQuery ¶
func BuildCreateRoleQuery ¶
func BuildDeleteColumnQuery ¶
func BuildDeletePolicyQuery ¶
func BuildDeleteRoleQuery ¶
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" )
Click to show internal directories.
Click to hide internal directories.