database tools
During the first migration dingo
installs a set of stored procedures and functions aimed to support rapid database development.
PostgreSQL | SqlServer | |
---|---|---|
drop_constraint | ✓ | ✓ |
drop_default | ✓ | ✓ |
drop_index | ✓ | ✓ |
drop_routine | ✓ | ✓ |
drop_type | ✓ | ✓ |
exists_column | ✓ | ✓ |
exists_constraint | ✓ | ✓ |
exists_index | ✓ | ✓ |
exists_materialized_view | ✓ | ✓ |
exists_table | ✓ | ✓ |
exists_type | ✓ | ✓ |
exists_view | ✓ | ✓ |
set_comment | ✕ | ✓ |
set_comment_routine | ✕ | ✓ |
set_comment_table | ✕ | ✓ |
set_comment_table_column | ✕ | ✓ |
set_comment_type | ✕ | ✓ |
set_comment_type_column | ✕ | ✓ |
set_comment_view | ✕ | ✓ |
set_comment_view_column | ✕ | ✓ |
drop_constraint
Drop constraint on the table by its name
Parameters:
type | required | default | |
---|---|---|---|
p_table_name | string | ✓ |
|
p_constraint_name | string | ✓ |
|
p_schema_name | string | ✕ |
|
Usage:
drop_default
Drop default
constraint on the table column
Parameters:
type | required | default | |
---|---|---|---|
p_table_name | string | ✓ |
|
p_column_name | string | ✓ |
|
p_schema_name | string | ✕ |
|
Usage:
drop_index
Drop index on the table by its name
Parameters:
type | required | default | |
---|---|---|---|
p_table_name | string | ✓ |
|
p_index_name | string | ✓ |
|
p_schema_name | string | ✕ |
|
Usage:
drop_routine
Drop user-defined routine by its name
Parameters:
type | required | default | |
---|---|---|---|
p_routine_name | string | ✓ |
|
p_schema_name | string | ✕ |
|
Usage:
drop_type
Drop user-defined type by its name
Parameters:
type | required | default | |
---|---|---|---|
p_type_name | string | ✓ |
|
p_schema_name | string | ✕ |
|
Usage:
exists_column
Check if column with given name exists on the table
Parameters:
type | required | default | |
---|---|---|---|
p_table_name | string | ✓ |
|
p_column_name | string | ✓ |
|
p_schema_name | string | ✕ |
|
Usage:
exists_constraint
Check if constraint with given name exists on the table
Parameters:
type | required | default | |
---|---|---|---|
p_table_name | string | ✓ |
|
p_constraint_name | string | ✓ |
|
p_schema_name | string | ✕ |
|
Usage:
exists_index
Check if index with given name exists on the table
Parameters:
type | required | default | |
---|---|---|---|
p_table_name | string | ✓ |
|
p_index_name | string | ✓ |
|
p_schema_name | string | ✕ |
|
Usage:
exists_materialized_view
Check if materialized view with given name exists
Parameters:
type | required | default | |
---|---|---|---|
p_mat_view_name | string | ✓ |
|
p_schema_name | string | ✕ |
|
Usage:
exists_table
Check if table with given name exists
Parameters:
type | required | default | |
---|---|---|---|
p_table_name | string | ✓ |
|
p_schema_name | string | ✕ |
|
Usage:
exists_type
Check if user-defined type with given name exists
Parameters:
type | required | default | |
---|---|---|---|
p_type_name | string | ✓ |
|
p_schema_name | string | ✕ |
|
Usage:
exists_view
Check if user-defined view with given name exists
Parameters:
type | required | default | |
---|---|---|---|
p_view_name | string | ✓ |
|
p_schema_name | string | ✕ |
|
Usage:
set_comment_routine
Set comment on a user-defined routine
Parameters:
type | required | default | |
---|---|---|---|
p_routine_name | string | ✓ |
|
p_comment | string | ✓ |
|
p_schema_name | string | ✕ |
|
Usage:
set_comment_table
Set comment on a table
Parameters:
type | required | default | |
---|---|---|---|
p_table_name | string | ✓ |
|
p_comment | string | ✓ |
|
p_schema_name | string | ✕ |
|
Usage:
set_comment_table_column
Set comment on a table column
Parameters:
type | required | default | |
---|---|---|---|
p_table_name | string | ✓ |
|
p_column_name | string | ✓ |
|
p_comment | string | ✓ |
|
p_schema_name | string | ✕ |
|
Usage:
set_comment_type
Set comment on a user-defined type
Parameters:
type | required | default | |
---|---|---|---|
p_type_name | string | ✓ |
|
p_comment | string | ✓ |
|
p_schema_name | string | ✕ |
|
Usage:
set_comment_type_column
Set comment on a type column
Parameters:
type | required | default | |
---|---|---|---|
p_type_name | string | ✓ |
|
p_column_name | string | ✓ |
|
p_comment | string | ✓ |
|
p_schema_name | string | ✕ |
|
Usage:
set_comment_view
Set comment on a view
Parameters:
type | required | default | |
---|---|---|---|
p_view_name | string | ✓ |
|
p_comment | string | ✓ |
|
p_schema_name | string | ✕ |
|
Usage:
set_comment_view_column
Set comment on a view column
Parameters:
type | required | default | |
---|---|---|---|
p_view_name | string | ✓ |
|
p_column_name | string | ✓ |
|
p_comment | string | ✓ |
|
p_schema_name | string | ✕ |
|
Usage: