feat(SIP-95): new endpoint for table metadata (#28122)

This commit is contained in:
Beto Dealmeida
2024-04-25 12:23:49 -04:00
committed by GitHub
parent 52f8734662
commit 6cf681df68
71 changed files with 1048 additions and 513 deletions

View File

@@ -15,8 +15,9 @@
# specific language governing permissions and limitations
# under the License.
from __future__ import annotations
import re
from typing import Optional
from pgsanity.pgsanity import check_string
@@ -31,7 +32,11 @@ class PostgreSQLValidator(BaseSQLValidator): # pylint: disable=too-few-public-m
@classmethod
def validate(
cls, sql: str, schema: Optional[str], database: Database
cls,
sql: str,
catalog: str | None,
schema: str | None,
database: Database,
) -> list[SQLValidationAnnotation]:
annotations: list[SQLValidationAnnotation] = []
valid, error = check_string(sql, add_semicolon=True)