Reference documentation and code samples for the Data Catalog V1 API class Google::Cloud::DataCatalog::V1::DatabaseTableSpec::DatabaseViewSpec.
Specification that applies to database view.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#base_table
defbase_table()->::String
Returns
(::String) — Name of a singular table this view reflects one to one.
Note: The following fields are mutually exclusive: base_table, sql_query. If a field in that set is populated, all other fields in the set will automatically be cleared.
#base_table=
defbase_table=(value)->::String
Parameter
value (::String) — Name of a singular table this view reflects one to one.
Note: The following fields are mutually exclusive: base_table, sql_query. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::String) — Name of a singular table this view reflects one to one.
Note: The following fields are mutually exclusive: base_table, sql_query. If a field in that set is populated, all other fields in the set will automatically be cleared.
#sql_query
defsql_query()->::String
Returns
(::String) — SQL query used to generate this view.
Note: The following fields are mutually exclusive: sql_query, base_table. If a field in that set is populated, all other fields in the set will automatically be cleared.
#sql_query=
defsql_query=(value)->::String
Parameter
value (::String) — SQL query used to generate this view.
Note: The following fields are mutually exclusive: sql_query, base_table. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::String) — SQL query used to generate this view.
Note: The following fields are mutually exclusive: sql_query, base_table. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Data Catalog V1 API - Class Google::Cloud::DataCatalog::V1::DatabaseTableSpec::DatabaseViewSpec (v2.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.1 (latest)](/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [2.3.0](/ruby/docs/reference/google-cloud-data_catalog-v1/2.3.0/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [2.2.2](/ruby/docs/reference/google-cloud-data_catalog-v1/2.2.2/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [2.1.1](/ruby/docs/reference/google-cloud-data_catalog-v1/2.1.1/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [2.0.0](/ruby/docs/reference/google-cloud-data_catalog-v1/2.0.0/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [1.4.0](/ruby/docs/reference/google-cloud-data_catalog-v1/1.4.0/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [1.3.1](/ruby/docs/reference/google-cloud-data_catalog-v1/1.3.1/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [1.2.0](/ruby/docs/reference/google-cloud-data_catalog-v1/1.2.0/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [1.1.0](/ruby/docs/reference/google-cloud-data_catalog-v1/1.1.0/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [1.0.1](/ruby/docs/reference/google-cloud-data_catalog-v1/1.0.1/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [0.23.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.23.0/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [0.22.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.22.0/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [0.21.2](/ruby/docs/reference/google-cloud-data_catalog-v1/0.21.2/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [0.20.1](/ruby/docs/reference/google-cloud-data_catalog-v1/0.20.1/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [0.19.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.19.0/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [0.18.1](/ruby/docs/reference/google-cloud-data_catalog-v1/0.18.1/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [0.17.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.17.0/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [0.16.1](/ruby/docs/reference/google-cloud-data_catalog-v1/0.16.1/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [0.15.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.15.0/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [0.14.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.14.0/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [0.13.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.13.0/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [0.12.1](/ruby/docs/reference/google-cloud-data_catalog-v1/0.12.1/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [0.11.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.11.0/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [0.10.0](/ruby/docs/reference/google-cloud-data_catalog-v1/0.10.0/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec)\n- [0.9.1](/ruby/docs/reference/google-cloud-data_catalog-v1/0.9.1/Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec) \nReference documentation and code samples for the Data Catalog V1 API class Google::Cloud::DataCatalog::V1::DatabaseTableSpec::DatabaseViewSpec.\n\nSpecification that applies to database view. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #base_table\n\n def base_table() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Name of a singular table this view reflects one to one.\n\n Note: The following fields are mutually exclusive: `base_table`, `sql_query`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #base_table=\n\n def base_table=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Name of a singular table this view reflects one to one.\n\n\nNote: The following fields are mutually exclusive: `base_table`, `sql_query`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::String) --- Name of a singular table this view reflects one to one.\n\n Note: The following fields are mutually exclusive: `base_table`, `sql_query`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #sql_query\n\n def sql_query() -\u003e ::String\n\n**Returns**\n\n- (::String) --- SQL query used to generate this view.\n\n Note: The following fields are mutually exclusive: `sql_query`, `base_table`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #sql_query=\n\n def sql_query=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- SQL query used to generate this view.\n\n\nNote: The following fields are mutually exclusive: `sql_query`, `base_table`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::String) --- SQL query used to generate this view.\n\n Note: The following fields are mutually exclusive: `sql_query`, `base_table`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #view_type\n\n def view_type() -\u003e ::Google::Cloud::DataCatalog::V1::DatabaseTableSpec::DatabaseViewSpec::ViewType\n\n**Returns**\n\n- ([::Google::Cloud::DataCatalog::V1::DatabaseTableSpec::DatabaseViewSpec::ViewType](./Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec-ViewType)) --- Type of this view.\n\n### #view_type=\n\n def view_type=(value) -\u003e ::Google::Cloud::DataCatalog::V1::DatabaseTableSpec::DatabaseViewSpec::ViewType\n\n**Parameter**\n\n- **value** ([::Google::Cloud::DataCatalog::V1::DatabaseTableSpec::DatabaseViewSpec::ViewType](./Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec-ViewType)) --- Type of this view. \n**Returns**\n\n- ([::Google::Cloud::DataCatalog::V1::DatabaseTableSpec::DatabaseViewSpec::ViewType](./Google-Cloud-DataCatalog-V1-DatabaseTableSpec-DatabaseViewSpec-ViewType)) --- Type of this view."]]