mirror of
https://github.com/apache/superset.git
synced 2026-04-25 11:04:48 +00:00
feat(sqllab): syntax validation for sqlite-based DB engine specs (#38698)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
# under the License.
|
||||
from typing import Optional
|
||||
|
||||
from . import base, postgres, presto_db
|
||||
from . import base, postgres, presto_db, sqlite
|
||||
from .base import SQLValidationAnnotation # noqa: F401
|
||||
|
||||
|
||||
@@ -24,4 +24,5 @@ def get_validator_by_name(name: str) -> Optional[type[base.BaseSQLValidator]]:
|
||||
return {
|
||||
"PrestoDBSQLValidator": presto_db.PrestoDBSQLValidator,
|
||||
"PostgreSQLValidator": postgres.PostgreSQLValidator,
|
||||
"SQLiteSQLValidator": sqlite.SQLiteSQLValidator,
|
||||
}.get(name)
|
||||
|
||||
Reference in New Issue
Block a user