database-hana
БесплатноБез исполняемых скриптовНе проверенApply SAP HANA database standards for SQL parameterization, in-memory engine optimization, dynamic IN query chunking, column aliasing on joins, and datatype…
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
SAP HANA Database Standards
Priority: P0 (CRITICAL)
Rules
- Strict Parameterization: Always use
?parameter placeholders for SAP HANA queries. Never use raw string concatenation,fmt.Sprintf, or untrusted interpolation for values. - Batching & Chunking Limits: Chunk large
IN (...)parameter lists into batches of at most 1,000 items to avoid HANA driver and engine parameter limits. - Explicit Column Aliasing: Always explicitly alias columns in multi-table queries (e.g.
m.code AS code,m.name AS name). SAP HANA and Go database drivers map scan columns by name; duplicate column names across joins silently collide or overwrite values. Never useSELECT *. - HANA Datatype Casting Gotchas: SAP HANA functions (such as
COALESCE,SUBSTR,CONCAT) require strictly compatible parameter types. Explicitly cast values when comparing or falling back (e.g.COALESCE(col, 'default'),TO_VARCHAR(...),CAST(? AS NVARCHAR)). - Identifier Case-Sensitivity: Unquoted SQL identifiers in SAP HANA default to UPPERCASE. Quoted identifiers (
"columnName") preserve case. Keep identifiers consistent with schema conventions. - Keyset & Streaming Pagination: Avoid deep
LIMIT/OFFSETon large columnar tables. Prefer keyset/seek pagination (WHERE id > ? ORDER BY id ASC LIMIT ?) and stream large result sets usingrows.Next()directly into models to prevent memory spikes. - Transaction Scope: Keep transactions short and focused on atomic write operations. Never perform slow external I/O or unbounded operations inside an open transaction. Always pair with
defer tx.Rollback().
Verify
- Query uses
?placeholders for all user-supplied or dynamic values. - Large
IN (...)queries chunk parameters into batches of ≤ 1,000 items. - All joined queries use explicit, distinct column aliases without
SELECT *. - Built-in functions (
COALESCE,SUBSTR) use matching datatypes or explicitCAST/TO_VARCHAR. - Pagination enforces strict
LIMITcaps and stableORDER BY. - Transactions are scoped to write paths with
defer tx.Rollback().
Anti-Patterns
- No SQL String Concatenation: Never build dynamic
WHEREclauses by concatenating unescaped strings. Build parameterized placeholder slices. - No Unbounded IN Clauses: Passing thousands of IDs in a single
IN (?, ?, ...)clause triggers HANA driver buffer overflow or query parsing degradation. - No SELECT * on Joins: Scanning duplicate column names across joined tables leads to silent bugs where one table's ID overwrites another.
- No Incompatible COALESCE Arguments: Providing mismatched types (e.g. integer column with string fallback) causes runtime HANA
inconsistent datatypeerrors. - No Heavy Reads Inside Transactions: Do not perform long calculation view aggregations or external network calls while holding an open transaction lock.
References
Установить database-hana в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл database-hana?
Apply SAP HANA database standards for SQL parameterization, in-memory engine optimization, dynamic IN query chunking, column aliasing on joins, and datatype casting. Use when writing SQL for SAP HANA, optimizing HANA queries, or diagnosing HANA driver errors.
Как установить скилл database-hana?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл database-hana запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic