Skip to contents

Checks that every statement is a CREATE TABLE, parentheses balance, identifiers are within the limit, reserved words are quoted and every column type is one the generator emits.

Usage

lint_ddl(sql, dialect, oracle_max_identifier = 30L)

Arguments

sql

DDL text.

dialect

One of EXTRA_EXPORT_TARGETS.

oracle_max_identifier

See generate_ddl().

Value

A character vector of problems (empty when clean).