Skip to content
Search
DSL · Pg query

func_arg

Definition

/**
 * Creates a new function argument for use in function/procedure definitions.
 *
 * Example: func_arg(column_type_integer())
 * Example: func_arg(column_type_text())->named('username')
 * Example: func_arg(column_type_integer())->named('count')->default('0')
 * Example: func_arg(column_type_text())->out()
 *
 * @param ColumnType $type The PostgreSQL data type for the argument
 *
 * @return FunctionArgument Builder for function argument options
 */
func_arg(ColumnType $type) : FunctionArgument

Contributors

Built in the open.

Join us on GitHub
scroll back to top