2021-08-05 22:54:50 +00:00
# Database Entity
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
## database
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json
2021-08-01 14:27:44 -07:00
```
Entity that represents a database
2021-08-05 22:54:50 +00:00
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | Yes | Unknown status | No | Forbidden | Allowed | none | [database.json ](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json ) |
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
### Database entity Type
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
`object` \([Database entity ](database.md )\)
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
## Database entity Properties
2021-08-04 06:53:40 +00:00
2021-08-05 22:54:50 +00:00
| Property | Type | Required | Nullable | Defined by |
| :--- | :--- | :--- | :--- | :--- |
| [id ](database.md#id ) | `string` | Optional | cannot be null | [Basic type ](../types/basic.md#basic-definitions-uuid ) |
| [name ](database.md#name ) | `string` | Required | cannot be null | [Database entity ](database.md#database-properties-name ) |
| [fullyQualifiedName ](database.md#fullyqualifiedname ) | `string` | Optional | cannot be null | [Database entity ](database.md#database-properties-fullyqualifiedname ) |
| [description ](database.md#description ) | `string` | Optional | cannot be null | [Database entity ](database.md#database-properties-description ) |
| [href ](database.md#href ) | `string` | Optional | cannot be null | [Basic type ](../types/basic.md#basic-definitions-href ) |
| [owner ](database.md#owner ) | `object` | Optional | cannot be null | [Entity Reference type ](../types/entityreference.md ) |
| [service ](database.md#service ) | `object` | Required | cannot be null | [Entity Reference type ](../types/entityreference.md ) |
| [usageSummary ](database.md#usagesummary ) | `object` | Optional | cannot be null | [Usage Details type ](../types/usagedetails.md ) |
| [tables ](database.md#tables ) | `array` | Optional | cannot be null | [Entity Reference type ](../types/entityreference.md#entityreference-definitions-entityreferencelist ) |
### id
2021-08-01 14:27:44 -07:00
Unique id used to identify an entity
`id`
2021-08-05 22:54:50 +00:00
* is optional
* Type: `string`
* cannot be null
* defined in: [Basic type ](../types/basic.md#basic-definitions-uuid )
2021-08-04 06:53:40 +00:00
2021-08-05 22:54:50 +00:00
#### id Type
2021-08-01 14:27:44 -07:00
`string`
2021-08-05 22:54:50 +00:00
#### id Constraints
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
**UUID**: the string must be a UUID, according to [RFC 4122 ](https://tools.ietf.org/html/rfc4122 )
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
### name
2021-08-01 14:27:44 -07:00
Name that identifies the database
`name`
2021-08-05 22:54:50 +00:00
* is required
* Type: `string`
* cannot be null
* defined in: [Database entity ](database.md#database-properties-name )
2021-08-04 06:53:40 +00:00
2021-08-05 22:54:50 +00:00
#### name Type
2021-08-01 14:27:44 -07:00
`string`
2021-08-05 22:54:50 +00:00
#### name Constraints
2021-08-01 14:27:44 -07:00
**maximum length**: the maximum number of characters for this string is: `64`
**minimum length**: the minimum number of characters for this string is: `1`
2021-08-05 22:54:50 +00:00
**pattern**: the string must match the following regular expression:
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
```text
2021-08-01 14:27:44 -07:00
^[^.]*$
```
2021-08-05 22:54:50 +00:00
[try pattern ](https://regexr.com/?expression=%5E%5B%5E.%5D*%24 )
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
### fullyQualifiedName
2021-08-01 14:27:44 -07:00
Name that uniquely identifies a database in the format 'ServiceName.DatabaseName'
`fullyQualifiedName`
2021-08-05 22:54:50 +00:00
* is optional
* Type: `string`
* cannot be null
* defined in: [Database entity ](database.md#database-properties-fullyqualifiedname )
2021-08-04 06:53:40 +00:00
2021-08-05 22:54:50 +00:00
#### fullyQualifiedName Type
2021-08-01 14:27:44 -07:00
`string`
2021-08-05 22:54:50 +00:00
### description
2021-08-01 14:27:44 -07:00
Description of the database instance. What it has and how to use it.
`description`
2021-08-05 22:54:50 +00:00
* is optional
* Type: `string`
* cannot be null
* defined in: [Database entity ](database.md#database-properties-description )
2021-08-04 06:53:40 +00:00
2021-08-05 22:54:50 +00:00
#### description Type
2021-08-01 14:27:44 -07:00
`string`
2021-08-05 22:54:50 +00:00
### href
2021-08-01 14:27:44 -07:00
Link to the resource corresponding to this entity
> Link to the resource
`href`
2021-08-05 22:54:50 +00:00
* is optional
* Type: `string`
* cannot be null
* defined in: [Basic type ](../types/basic.md#basic-definitions-href )
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
#### href Type
2021-08-04 06:53:40 +00:00
`string`
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
#### href Constraints
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
**URI**: the string must be a URI, according to [RFC 3986 ](https://tools.ietf.org/html/rfc3986 )
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
### owner
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
Entity reference that includes entity ID and entity type
2021-08-01 14:27:44 -07:00
`owner`
2021-08-05 22:54:50 +00:00
* is optional
* Type: `object` \([Entity Reference ](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/entityreference.md )\)
* cannot be null
* defined in: [Entity Reference type ](../types/entityreference.md )
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
#### owner Type
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
`object` \([Entity Reference ](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/entityreference.md )\)
2021-08-04 06:53:40 +00:00
2021-08-05 22:54:50 +00:00
### service
2021-08-04 06:53:40 +00:00
Entity reference that includes entity ID and entity type
2021-08-01 14:27:44 -07:00
`service`
2021-08-05 22:54:50 +00:00
* is required
* Type: `object` \([Entity Reference ](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/entityreference.md )\)
* cannot be null
* defined in: [Entity Reference type ](../types/entityreference.md )
2021-08-04 06:53:40 +00:00
2021-08-05 22:54:50 +00:00
#### service Type
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
`object` \([Entity Reference ](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/entityreference.md )\)
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
### usageSummary
2021-08-04 06:53:40 +00:00
Type used to return usage details of an entity
2021-08-01 14:27:44 -07:00
`usageSummary`
2021-08-05 22:54:50 +00:00
* is optional
* Type: `object` \([Type used to return usage details of an entity ](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/usagedetails.md )\)
* cannot be null
* defined in: [Usage Details type ](../types/usagedetails.md )
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
#### usageSummary Type
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
`object` \([Type used to return usage details of an entity ](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/usagedetails.md )\)
2021-08-04 06:53:40 +00:00
2021-08-05 22:54:50 +00:00
### tables
2021-08-01 14:27:44 -07:00
References to tables in the database
`tables`
2021-08-05 22:54:50 +00:00
* is optional
* Type: `object[]` \([Entity Reference ](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/entityreference.md )\)
* cannot be null
* defined in: [Entity Reference type ](../types/entityreference.md#entityreference-definitions-entityreferencelist )
2021-08-04 06:53:40 +00:00
2021-08-05 22:54:50 +00:00
#### tables Type
2021-08-04 06:53:40 +00:00
2021-08-05 22:54:50 +00:00
`object[]` \([Entity Reference ](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/entityreference.md )\)
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
## Database entity Definitions
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
### Definitions group databaseName
2021-08-01 14:27:44 -07:00
Reference this group by using
2021-08-05 22:54:50 +00:00
```javascript
2021-08-04 13:18:14 +05:30
{"$ref":"https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json#/definitions/databaseName "}
2021-08-01 14:27:44 -07:00
```
| Property | Type | Required | Nullable | Defined by |
2021-08-05 22:54:50 +00:00
| :--- | :--- | :--- | :--- | :--- |
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
## database-definitions-databasename
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/api/data/createDatabase.json#/properties/name
2021-08-01 14:27:44 -07:00
```
Name that identifies the database
2021-08-05 22:54:50 +00:00
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [createDatabase.json\* ](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/out/api/data/createDatabase.json ) |
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
### name Type
2021-08-01 14:27:44 -07:00
`string`
2021-08-05 22:54:50 +00:00
### name Constraints
2021-08-01 14:27:44 -07:00
**maximum length**: the maximum number of characters for this string is: `64`
**minimum length**: the minimum number of characters for this string is: `1`
2021-08-05 22:54:50 +00:00
**pattern**: the string must match the following regular expression:
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
```text
2021-08-01 14:27:44 -07:00
^[^.]*$
```
2021-08-05 22:54:50 +00:00
[try pattern ](https://regexr.com/?expression=%5E%5B%5E.%5D*%24 )
## database-definitions
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json#/definitions
2021-08-01 14:27:44 -07:00
```
2021-08-05 22:54:50 +00:00
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [database.json\* ](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json ) |
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
### definitions Type
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
unknown
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
## database-properties-description
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json#/properties/description
2021-08-01 14:27:44 -07:00
```
Description of the database instance. What it has and how to use it.
2021-08-05 22:54:50 +00:00
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [database.json\* ](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json ) |
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
### description Type
2021-08-01 14:27:44 -07:00
`string`
2021-08-05 22:54:50 +00:00
## database-properties-fullyqualifiedname
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json#/properties/fullyQualifiedName
2021-08-01 14:27:44 -07:00
```
Name that uniquely identifies a database in the format 'ServiceName.DatabaseName'
2021-08-05 22:54:50 +00:00
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [database.json\* ](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json ) |
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
### fullyQualifiedName Type
2021-08-01 14:27:44 -07:00
`string`
2021-08-05 22:54:50 +00:00
## database-properties-name
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json#/properties/name
2021-08-01 14:27:44 -07:00
```
Name that identifies the database
2021-08-05 22:54:50 +00:00
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [database.json\* ](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json ) |
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
### name Type
2021-08-01 14:27:44 -07:00
`string`
2021-08-05 22:54:50 +00:00
### name Constraints
2021-08-01 14:27:44 -07:00
**maximum length**: the maximum number of characters for this string is: `64`
**minimum length**: the minimum number of characters for this string is: `1`
2021-08-05 22:54:50 +00:00
**pattern**: the string must match the following regular expression:
2021-08-01 14:27:44 -07:00
2021-08-05 22:54:50 +00:00
```text
2021-08-01 14:27:44 -07:00
^[^.]*$
```
2021-08-05 22:54:50 +00:00
[try pattern ](https://regexr.com/?expression=%5E%5B%5E.%5D*%24 )