* Get table comment from the connector if supported.
( connector: Connector, tableName: string, schemaName?: string )
| 121 | * Get table comment from the connector if supported. |
| 122 | */ |
| 123 | async function getTableComment( |
| 124 | connector: Connector, |
| 125 | tableName: string, |
| 126 | schemaName?: string |
| 127 | ): Promise<string | null> { |
| 128 | try { |
| 129 | if (connector.getTableComment) { |
| 130 | return await connector.getTableComment(tableName, schemaName); |
| 131 | } |
| 132 | return null; |
| 133 | } catch (error) { |
| 134 | return null; |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | /** |
| 139 | * Search for schemas |
no test coverage detected