---
name: "UR::DataSource::RDBMS::Table"
section: "3pm"
platform: "linux"
package: "libur-perl"
version: "0.470+ds-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/UR::DataSource::RDBMS::Table"
---

# UR::DataSource::RDBMS::Table(3pm)

Object-oriented class for RDBMS table objects.

## NAME

UR::DataSource::Meta::RDBMS::Table - Object-oriented class for RDBMS table objects.

## SYNOPSIS

```
  $t = UR::DataSource::Meta::RDBMS::Table->get(
                      data_source => 'Namespace::DataSource::Name',
                      table_name => 'MY_TABLE_NAME');
  @c = $t->column_names;
  @f = $t->fk_constraint_names;
```

## DESCRIPTION

Objects of this class represent a table in a database.  They are  primarily used by the class updating logic in the command line tool `"ur update classes"`, but can be retrieved and used in any application. Their instances come from from the MetaDB (UR::DataSource::Meta) which is partitioned and has one physical database per Namespace.

### Related Metadata Methods

- @col\_objs = $t-\>**columns()**;

  - @col\_names = $t-\>**column\_names()**;

  - @fk\_objs = $t-\>**fk\_constraints()**;

  - @fk\_names = $t-\>**fk\_constraint\_names()**;

  - @ref\_fk\_objs = $t-\>**ref\_fk\_constraints()**;

  - @ref\_fk\_names = $t-\>**ref\_fk\_constraint\_names()**;

  - @pk\_objs = $t-\>**primary\_key\_constraint\_columns()**;

  - @pk\_col\_names = $t-\>**primary\_key\_constraint\_column\_names()**;

  - @bi\_objs = $t-\>**bitmap\_indexes()**;

  - @bi\_names = $t-\>**bitmap\_index\_names()**;

  Return related metadata objects (or names) for the given table object.
