represents a PostgreSQL type
More...
#include <PgsqlSqlUtilBase.qm.dox.h>
|
| constructor (string n_name, string n_src) |
| creates the type from the supplied arguments
|
|
bool | equal (PgsqlType type) |
| returns True if the types are equal
|
|
string | getCreateSql (*hash opt) |
| returns a string that can be used to create the type in the database
|
|
string | getDropSql (*hash opt) |
| returns a string that can be used to drop the function from the database More...
|
|
string | getRenameSql (string new_name, *hash opt) |
| returns a string that can be used to rename a type More...
|
|
|
string | name |
| the name of the type
|
|
string | src |
| the source of the type
|
|
represents a PostgreSQL type
◆ getDropSql()
string PgsqlSqlUtilBase::PgsqlType::getDropSql |
( |
*hash |
opt | ) |
|
returns a string that can be used to drop the function from the database
- Parameters
-
opt | drop options; if force is True, then the CASCADE option will be used in the drop statement |
◆ getRenameSql()
string PgsqlSqlUtilBase::PgsqlType::getRenameSql |
( |
string |
new_name, |
|
|
*hash |
opt |
|
) |
| |
returns a string that can be used to rename a type
- Parameters
-
new_name | the new name of the object |
opt | this argument is ignored |