2021-08-04 06:53:40 +00:00
# database
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
```txt
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-04 06:53:40 +00:00
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :-------------------------------------------------------------------------------- |
2021-08-04 13:18:14 +05:30
| Can be instantiated | Yes | Unknown status | No | Forbidden | Allowed | none | [database.json ](../../https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json "open original schema" ) |
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
## Database entity Type
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
`object` ([Database entity ](database.md ))
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
# Database entity Properties
2021-08-01 14:27:44 -07:00
2021-08-04 07:49:14 +00:00
| Property | Type | Required | Nullable | Defined by |
| :---------------------------------------- | :------- | :------- | :------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2021-08-04 06:53:40 +00:00
| [id ](#id ) | `string` | Optional | cannot be null | [Basic type ](../types/basic.md#basic-definitions-uuid ) |
2021-08-04 13:18:14 +05:30
| [name ](#name ) | `string` | Required | cannot be null | [Database entity ](#database-properties-name "https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json#/properties/name" ) |
| [fullyQualifiedName ](#fullyqualifiedname ) | `string` | Optional | cannot be null | [Database entity ](#database-properties-fullyqualifiedname "https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json#/properties/fullyQualifiedName" ) |
| [description ](#description ) | `string` | Optional | cannot be null | [Database entity ](#database-properties-description "https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json#/properties/description" ) |
2021-08-04 06:53:40 +00:00
| [href ](#href ) | `string` | Optional | cannot be null | [Basic type ](../types/basic.md#basic-definitions-href ) |
| [owner ](#owner ) | `object` | Optional | cannot be null | [Entity Reference type ](../types/entityreference.md ) |
| [service ](#service ) | `object` | Required | cannot be null | [Entity Reference type ](../types/entityreference.md ) |
| [usageSummary ](#usagesummary ) | `object` | Optional | cannot be null | [Usage Details type ](../types/usagedetails.md ) |
| [tables ](#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-04 06:53:40 +00:00
* is optional
* Type: `string`
* cannot be null
* defined in: [Basic type ](../types/basic.md#basic-definitions-uuid )
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
### id Type
2021-08-01 14:27:44 -07:00
`string`
2021-08-04 06:53:40 +00:00
### id Constraints
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
**UUID**: the string must be a UUID, according to [RFC 4122 ](https://tools.ietf.org/html/rfc4122 "check the specification" )
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
## name
2021-08-01 14:27:44 -07:00
Name that identifies the database
`name`
2021-08-04 06:53:40 +00:00
* is required
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
* Type: `string`
* cannot be null
2021-08-04 13:18:14 +05:30
* defined in: [Database entity ](#database-properties-name "https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json#/properties/name" )
2021-08-04 06:53:40 +00:00
### name Type
2021-08-01 14:27:44 -07:00
`string`
2021-08-04 06:53:40 +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-04 06:53:40 +00:00
**pattern**: the string must match the following regular expression:
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
```regexp
2021-08-01 14:27:44 -07:00
^[^.]*$
```
2021-08-04 06:53:40 +00:00
[try pattern ](https://regexr.com/?expression=%5E%5B%5E.%5D\*%24 "try regular expression with regexr.com" )
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +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-04 06:53:40 +00:00
* is optional
* Type: `string`
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
* cannot be null
2021-08-04 13:18:14 +05:30
* defined in: [Database entity ](#database-properties-fullyqualifiedname "https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json#/properties/fullyQualifiedName" )
2021-08-04 06:53:40 +00:00
### fullyQualifiedName Type
2021-08-01 14:27:44 -07:00
`string`
2021-08-04 06:53:40 +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-04 06:53:40 +00:00
* is optional
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
* Type: `string`
* cannot be null
2021-08-04 13:18:14 +05:30
* defined in: [Database entity ](#database-properties-description "https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json#/properties/description" )
2021-08-04 06:53:40 +00:00
### description Type
2021-08-01 14:27:44 -07:00
`string`
2021-08-04 06:53:40 +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-04 06:53:40 +00:00
* is optional
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
* Type: `string`
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
* cannot be null
* defined in: [Basic type ](../types/basic.md#basic-definitions-href )
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
### href Type
`string`
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
### href Constraints
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
**URI**: the string must be a URI, according to [RFC 3986 ](https://tools.ietf.org/html/rfc3986 "check the specification" )
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +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-04 06:53:40 +00:00
* is optional
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
* Type: `object` ([Entity Reference ](entityreference.md ))
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
* cannot be null
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
* defined in: [Entity Reference type ](../types/entityreference.md )
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
### owner Type
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
`object` ([Entity Reference ](entityreference.md ))
## service
Entity reference that includes entity ID and entity type
2021-08-01 14:27:44 -07:00
`service`
2021-08-04 06:53:40 +00:00
* is required
* Type: `object` ([Entity Reference ](entityreference.md ))
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
* cannot be null
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
* defined in: [Entity Reference type ](../types/entityreference.md )
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
### service Type
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
`object` ([Entity Reference ](entityreference.md ))
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
## usageSummary
Type used to return usage details of an entity
2021-08-01 14:27:44 -07:00
`usageSummary`
2021-08-04 06:53:40 +00:00
* is optional
* Type: `object` ([Type used to return usage details of an entity ](usagedetails.md ))
* cannot be null
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
* defined in: [Usage Details type ](../types/usagedetails.md )
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
### usageSummary Type
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
`object` ([Type used to return usage details of an entity ](usagedetails.md ))
## tables
2021-08-01 14:27:44 -07:00
References to tables in the database
`tables`
2021-08-04 06:53:40 +00:00
* is optional
* Type: `object[]` ([Entity Reference ](entityreference.md ))
* cannot be null
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
* defined in: [Entity Reference type ](../types/entityreference.md#entityreference-definitions-entityreferencelist )
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
### tables Type
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
`object[]` ([Entity Reference ](entityreference.md ))
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
# Database entity Definitions
## Definitions group databaseName
2021-08-01 14:27:44 -07:00
Reference this group by using
2021-08-04 06:53:40 +00:00
```json
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-04 06:53:40 +00:00
| :------- | :--- | :------- | :------- | :--------- |
# database-definitions-databasename
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
```txt
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-04 06:53:40 +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* ](../../../../out/api/data/createDatabase.json "open original schema" ) |
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
## name Type
2021-08-01 14:27:44 -07:00
`string`
2021-08-04 06:53:40 +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-04 06:53:40 +00:00
**pattern**: the string must match the following regular expression:
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
```regexp
2021-08-01 14:27:44 -07:00
^[^.]*$
```
2021-08-04 06:53:40 +00:00
[try pattern ](https://regexr.com/?expression=%5E%5B%5E.%5D\*%24 "try regular expression with regexr.com" )
# database-definitions
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
```txt
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-04 06:53:40 +00:00
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------------- |
2021-08-04 13:18:14 +05:30
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [database.json* ](../../https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json "open original schema" ) |
2021-08-04 06:53:40 +00:00
## definitions Type
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
unknown
# database-properties-description
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
```txt
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-04 06:53:40 +00:00
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------------- |
2021-08-04 13:18:14 +05:30
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [database.json* ](../../https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json "open original schema" ) |
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
## description Type
2021-08-01 14:27:44 -07:00
`string`
2021-08-04 06:53:40 +00:00
# database-properties-fullyqualifiedname
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
```txt
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-04 06:53:40 +00:00
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------------- |
2021-08-04 13:18:14 +05:30
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [database.json* ](../../https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json "open original schema" ) |
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
## fullyQualifiedName Type
2021-08-01 14:27:44 -07:00
`string`
2021-08-04 06:53:40 +00:00
# database-properties-name
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
```txt
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-04 06:53:40 +00:00
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :--------------------------------------------------------------------------------- |
2021-08-04 13:18:14 +05:30
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [database.json* ](../../https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/database.json "open original schema" ) |
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
## name Type
2021-08-01 14:27:44 -07:00
`string`
2021-08-04 06:53:40 +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-04 06:53:40 +00:00
**pattern**: the string must match the following regular expression:
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
```regexp
2021-08-01 14:27:44 -07:00
^[^.]*$
```
2021-08-04 06:53:40 +00:00
[try pattern ](https://regexr.com/?expression=%5E%5B%5E.%5D\*%24 "try regular expression with regexr.com" )