Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.sql.config_flow Namespace Reference

Classes

class  SQLConfigFlow
 
class  SQLOptionsFlowHandler
 

Functions

bool validate_query (str db_url, str query, str column)
 
str validate_sql_select (str value)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 Schema
 

Detailed Description

Adds config flow for SQL integration.

Function Documentation

◆ validate_query()

bool homeassistant.components.sql.config_flow.validate_query ( str  db_url,
str  query,
str  column 
)
Validate SQL query.

Definition at line 102 of file config_flow.py.

◆ validate_sql_select()

str homeassistant.components.sql.config_flow.validate_sql_select ( str  value)
Validate that value is a SQL SELECT query.

Definition at line 90 of file config_flow.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.sql.config_flow._LOGGER = logging.getLogger(__name__)
private

Definition at line 40 of file config_flow.py.

◆ Schema

homeassistant.components.sql.config_flow.Schema

Definition at line 43 of file config_flow.py.