docs: migrate from VitePress to Fumadocs (Next.js)

- Replace VitePress with Fumadocs + Next.js for documentation site
- Configure i18n (English + 简体中文) with language switcher
- Migrate all 17 guide documents to MDX format with updated content
- Add ocean theme, GitHub/Discord/QQ social links
- Update GitHub Actions workflow for Next.js static export
- Update .gitignore for .next, out, .source directories
This commit is contained in:
t8y2
2026-05-06 10:17:17 +08:00
parent 97eeab2801
commit 6a5a380fdd
65 changed files with 4647 additions and 3452 deletions
+39
View File
@@ -0,0 +1,39 @@
---
title: SQL File Execution
description: Run .sql files directly within DBX with progress tracking and cancellation support.
---
# SQL File Execution
SQL File Execution lets you run `.sql` files directly within DBX, with progress tracking and the ability to cancel mid-execution. This is useful for running migration scripts, seed data, or database setup files.
## Running a SQL File
1. Open the SQL File Execution panel.
2. Select a `.sql` file from your filesystem.
3. Choose the target connection and database.
4. Click execute.
## Progress Tracking
During execution, DBX displays:
- The total number of statements detected in the file
- How many statements have been executed so far
- The currently executing statement
This gives you visibility into long-running scripts without waiting blindly for completion.
## Smart Statement Splitting
DBX parses the SQL file intelligently rather than naively splitting on semicolons. The parser correctly handles:
- **Functions and procedures** -- Multi-statement bodies with `BEGIN...END` blocks are treated as a single unit.
- **Triggers** -- `CREATE TRIGGER` statements with embedded logic are kept intact.
- **Quoted strings** -- Semicolons inside string literals or identifiers are not treated as statement delimiters.
This ensures that complex SQL files execute correctly without requiring manual editing.
## Cancelling Execution
If you need to stop execution before the file finishes, click the cancel button. DBX will stop after the current statement completes. Statements that have already been executed are not rolled back.