Skip to main content

table

Returns a table by ID.

Arguments

  • id required ID


Returns

Nullable Table

The table object.

Once a table introspection succeeds, it creates a new table object for every table it introspected.

  • table.id non-null ID

    The table's ID.

  • table.name non-null String

    The table's name.

  • table.dataSource nullable DataSource

    The Data Source to which the table belongs.

  • table.rows nullable Int

    The number of rows contained within the table at the time of introspection. Check the table's cachedAt time, since this info can become out of date.

  • table.size nullable Int

    The size of the table (in bytes) at the time of introspection. Check the table's cachedAt time, since this info can become out of date.

  • table.cachedAt non-null DateTime

    The time at which the table was cached (i.e., the time at which it was introspected).

  • table.createdAt non-null DateTime

    The time at which the table was created. This is the same as its cachedAt time.

  • table.createdBy non-null String

    The table's creator. This corresponds to the initiator of the table Introspection. It can be either a User ID, an Application ID, or "system" if it was created by Propel.

  • table.columns nullable ColumnConnection

    The table's columns.

  • table.availableTimestamps nullable ColumnConnection

    The table's columns which can be used as a timestamp for a Data Pool.

  • table.availableMeasures nullable ColumnConnection

    The table's columns which can be used as a measure for a Metric.