mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat(docs): auto-generate database documentation from lib.py (#36805)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -21,7 +21,7 @@ from urllib import parse
|
||||
|
||||
from sqlalchemy.engine.url import make_url, URL # noqa: F401
|
||||
|
||||
from superset.db_engine_specs.base import BaseEngineSpec
|
||||
from superset.db_engine_specs.base import BaseEngineSpec, DatabaseCategory
|
||||
|
||||
|
||||
class TDengineEngineSpec(BaseEngineSpec):
|
||||
@@ -33,6 +33,23 @@ class TDengineEngineSpec(BaseEngineSpec):
|
||||
"taosws://user:******@host:port/dbname[?key=value&key=value...]"
|
||||
)
|
||||
|
||||
metadata = {
|
||||
"description": "TDengine is a high-performance time-series database for IoT.",
|
||||
"logo": "tdengine.png",
|
||||
"homepage_url": "https://tdengine.com/",
|
||||
"categories": [DatabaseCategory.TIME_SERIES, DatabaseCategory.OPEN_SOURCE],
|
||||
"pypi_packages": ["taospy", "taos-ws-py"],
|
||||
"connection_string": "taosws://{user}:{password}@{host}:{port}",
|
||||
"default_port": 6041,
|
||||
"connection_examples": [
|
||||
{
|
||||
"description": "Local connection",
|
||||
"connection_string": "taosws://root:taosdata@127.0.0.1:6041",
|
||||
},
|
||||
],
|
||||
"docs_url": "https://www.tdengine.com",
|
||||
}
|
||||
|
||||
# time grain
|
||||
_time_grain_expressions = {
|
||||
None: "{col}",
|
||||
|
||||
Reference in New Issue
Block a user