mcpField
B
bitrix-database

bitrix-database

github.com/bxmaximumData & databases47280 installsUpdated 2w ago
Repository

About bitrix-database

A Bitrix database development skill for developers working with ORM and SQL. It documents connection management, safe queries, schema changes, and operational constraints for direct database access.

Key features

  1. 01Connection configuration and named locks
  2. 02ORM and SQL query guidance
  3. 03Placeholder and SqlHelper usage
  4. 04DDL and index change guidance
  5. 05SqlTracker debugging guidance

Use cases

  1. 01Reviewing database connection setup
  2. 02Writing safe SQL queries and upserts
  3. 03Changing tables or indexes
  4. 04Debugging database activity

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/bxmaximum/bitrix-framework-skills --skill bitrix-database

After installing, type/bitrix-databasein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

rules/
connections.md
ddl-debug.md
queries.md

Details

From the project README

Direct database access

Baseline: main 23.0+ · Verified: main 26.800.0

ORM first (bitrix-orm: query(), batch writes, merge, deleteByFilter). Drop to SQL for upserts, windows/CTE, heavy reports, extra connections and schema changes.

TaskRead
connections config, extra DBs, charset, after-connect hook, named locksrules/connections.md
query*, add/addMulti, SqlHelper, placeholders, upsert, transactionsrules/queries.md
DDL builders, table/index changes, SqlTrackerrules/ddl-debug.md

Invariants

  • Every value reaches SQL through SqlExpression placeholders or SqlHelper (forSql, convertToDb*). The $binds argument of query()/queryExecute() is not a prepared statement.
  • Identifiers from input: whitelist first, then quote() / ?#.
  • Raw writes skip ORM events and cache: call XxxTable::cleanCache() afterwards.
  • Portable SQL only: SqlHelper functions, no backticks, ENGINE, UNSIGNED (bitrix-postgresql).
  • One connection per transaction; keep transactions short.

Comments

Markdown supported