All Products
Search
Document Center

:Manage types

Last Updated:Feb 24, 2023

Log on to OceanBase Developer Center (ODC) and click the name of the target connection to go to the corresponding connection management page. You can click Type in the left-side navigation pane to get a list of types The type list displays the type objects in the current database. You can right-click the target object in the type list to perform some management actions on the object. You can also double-click the target type in the type list to go to the type management page.

Structure tree

You can click the expand icon before the name of the target type in the type list, and the structure tree of the type is displayed in a drop-down list, as shown in the following figure. The structure tree of a type can have up to five levels. When you right-click an item in the tree, the shortcut menu displays some actions that you can perform on the item. For more information about these actions, see the Management actions section, where you can find the table describing the management options.

Image 648

Management actions

The names of type objects support ascending order by the head character by default in the type list.

Shortcut function

The following functions are provided in the upper right corner of the tree:

Action

Description

Create

Click this option to create type.

Filter

Click this option to display valid/invalid types.

Refresh

Click this option to refresh the structure tree after you perform management actions on the type, so that the structure tree displays the latest information.

Right-click function

Right-click the target object in the structure tree. A shortcut menu appears, displaying some management options provided by ODC for you to conveniently manage the target object.

The following table describes the management options.

Option

Description

View Type

Click this option to go to the type management page, where you can view the basic information and codes of the type.

Create Type

Click this option to go to the Create Type page, where you can create a type as prompted.

Export

Export single table, see Single table export and import.

Download

Download the SQL file for the type object.

Delete

Click this option to delete the type.

Refresh

Click this option to refresh the list after you perform management actions on the type, so that the list displays the latest information.

Type management page

You can double-click the name of the target type in the type list to go to the type management page. This page provides two tabs:

  • Basic Info: displays information such as Name, Owner, Type, Creation Time, and Modified At of the type object.

  • DDL: displays the script that defines the type and provides the Download, Find, Refresh and Format buttons. You can click Edit to go to the type editing page.