Defining PostgreSQL Casts

The following properties are applicable to a PostgreSQL Cast object.

Tab

Section

Property

Description

Additional Information

 

 

Name

Specifies the name of the cast

 

 

 

Generate

Specifies whether a SQL statement for the cast is generated during forward engineering

 

General

 

 

 

 

Casts Options

 

 

 

 

Source Data Type

Specifies the source data type of the cast

 

Target Data Type

Specifies the target data type of the cast

 

Cast Type

Specifies the type of the cast

With Function: Indicates to perform conversion between two data types.

Without Function: Indicates that the source type is binary-coercible to the target type without needing a function to handle the cast.

With Inout: Indicates that the cast is an I/O conversion cast. This is handled by calling the output function of the source data type and passing the resulting string to the input function of the target data type.

Function

Specifies the name of the function used to perform the cast

 

Invoke Type

Specifies the type of invoke

As Assignment: Indicates that the cast can be automatically applied in assignment contexts.

As Implicit: Indicates that the cast can be automatically applied in any context.

  1. (Optional) Click the Comment tab and enter any comments that you want to associate with the object.
  2. (Optional) Click the UDP tab to work with user-defined properties for the object.
  3. (Optional) Click the Notes tab to view and edit user notes.
  4. (Optional) Click the Extended Notes tab to view or edit user notes.
  5. Click Close.
  6. The cast is defined, and the PostgreSQL Cast Editor closes.

For more information, refer to the PostgreSQL documentation.