Skip to content

Commit 1e33f8d

Browse files
committed
docs: add custom landing page
1 parent 7e161c7 commit 1e33f8d

4 files changed

Lines changed: 394 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
Multi-database schema comparison and migration CLI tool. Supports **PostgreSQL**, **MySQL**, and **SQL Server**.
99

10+
Live page: [merup.me/dbdiff](https://merup.me/dbdiff/)
11+
12+
DBDiff keeps schema comparison and migration generation in one CLI so you can inspect drift, review the generated SQL, and move forward without bouncing between separate tools or dialect-specific scripts.
13+
1014
## Features
1115

1216
- Compare database schemas between two instances

docs/.nojekyll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

docs/index.html

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<title>DBDiff | Compare database schemas and generate migration SQL</title>
7+
<meta
8+
name="description"
9+
content="DBDiff compares PostgreSQL, MySQL, and SQL Server schemas and generates migration SQL with dialect-aware output."
10+
/>
11+
<meta property="og:title" content="DBDiff | Compare database schemas and generate migration SQL" />
12+
<meta
13+
property="og:description"
14+
content="Diff two database schemas, review the generated migration plan, and keep the workflow in one CLI across PostgreSQL, MySQL, and SQL Server."
15+
/>
16+
<meta property="og:type" content="website" />
17+
<meta property="og:url" content="https://merup.me/dbdiff/" />
18+
<link rel="preconnect" href="https://fonts.googleapis.com" />
19+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
20+
<link
21+
href="https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700;800&family=Source+Code+Pro:wght@400;500&display=swap"
22+
rel="stylesheet"
23+
/>
24+
<link rel="stylesheet" href="./styles.css" />
25+
</head>
26+
<body>
27+
<div class="page">
28+
<header class="topbar">
29+
<a class="brand" href="https://github.com/Meru143/dbdiff">DBDiff</a>
30+
<nav>
31+
<a href="#compare">Compare</a>
32+
<a href="#dialects">Dialects</a>
33+
<a href="#install">Install</a>
34+
<a href="https://github.com/Meru143/dbdiff">GitHub</a>
35+
</nav>
36+
</header>
37+
38+
<main>
39+
<section class="hero">
40+
<div class="hero-copy">
41+
<p class="eyebrow">Schema diff and migration SQL</p>
42+
<h1>Review the schema drift before you run the migration.</h1>
43+
<p class="lede">
44+
DBDiff compares two databases, highlights structural differences, and generates
45+
dialect-aware migration SQL for PostgreSQL, MySQL, and SQL Server from one CLI.
46+
</p>
47+
<div class="actions">
48+
<a class="button primary" href="https://github.com/Meru143/dbdiff">Star on GitHub</a>
49+
<a class="button secondary" href="#install">Install DBDiff</a>
50+
</div>
51+
</div>
52+
53+
<div class="schema-board">
54+
<div class="schema-card source">
55+
<p class="label">Source</p>
56+
<pre><code>users
57+
id bigint pk
58+
email text unique
59+
name text
60+
created_at timestamptz</code></pre>
61+
</div>
62+
<div class="schema-card target">
63+
<p class="label">Target</p>
64+
<pre><code>users
65+
id bigint pk
66+
email varchar(255) unique
67+
display_name text
68+
created_at timestamptz
69+
updated_at timestamptz</code></pre>
70+
</div>
71+
<div class="schema-card sql">
72+
<p class="label">Generated SQL</p>
73+
<pre><code>ALTER TABLE users
74+
RENAME COLUMN name TO display_name;
75+
76+
ALTER TABLE users
77+
ADD COLUMN updated_at timestamptz;</code></pre>
78+
</div>
79+
</div>
80+
</section>
81+
82+
<section id="compare" class="section">
83+
<div class="section-head">
84+
<p class="eyebrow">Compare</p>
85+
<h2>One CLI for schema inspection, SQL generation, and safer review loops.</h2>
86+
<p>
87+
The practical win is speed of review. Instead of flipping between different tools
88+
for inspection and migration output, DBDiff keeps the diff, the dialect, and the
89+
generated SQL in one flow.
90+
</p>
91+
</div>
92+
93+
<div class="cards">
94+
<article class="card">
95+
<h3>Diff first</h3>
96+
<p>Compare two instances before you touch production and catch drift while it is still explainable.</p>
97+
</article>
98+
<article class="card">
99+
<h3>Generate SQL</h3>
100+
<p>Produce migration scripts in SQL, JSON, or table output depending on where the result needs to go next.</p>
101+
</article>
102+
<article class="card">
103+
<h3>Dry run by default</h3>
104+
<p>Review is the default posture, which makes it easier to trust the tool inside a delivery workflow.</p>
105+
</article>
106+
</div>
107+
</section>
108+
109+
<section id="dialects" class="section split">
110+
<div class="section-head">
111+
<p class="eyebrow">Dialects</p>
112+
<h2>PostgreSQL, MySQL, and SQL Server with dialect-aware DDL.</h2>
113+
<p>
114+
The tool is useful precisely because it does not flatten everything to one generic
115+
SQL dialect. It keeps the generated statements close to the actual target platform.
116+
</p>
117+
</div>
118+
119+
<div class="dialect-grid">
120+
<div class="dialect">
121+
<span>PostgreSQL</span>
122+
<p>`ALTER COLUMN TYPE`, schema-aware introspection, and transaction-friendly flows.</p>
123+
</div>
124+
<div class="dialect">
125+
<span>MySQL</span>
126+
<p>`MODIFY COLUMN` generation and MySQL-specific comparison behavior.</p>
127+
</div>
128+
<div class="dialect">
129+
<span>SQL Server</span>
130+
<p>Cross-instance diffing with SQL Server connection support built into the same CLI.</p>
131+
</div>
132+
</div>
133+
</section>
134+
135+
<section id="install" class="section install">
136+
<div class="section-head">
137+
<p class="eyebrow">Install</p>
138+
<h2>Short path to the first diff.</h2>
139+
<p>
140+
Go install is the cleanest starting point. After that, compare two schemas and inspect
141+
the generated SQL before you wire the tool into a wider migration process.
142+
</p>
143+
</div>
144+
145+
<div class="install-grid">
146+
<pre><code>go install github.com/meru143/dbdiff@latest
147+
148+
dbdiff compare postgres://source postgres://target
149+
dbdiff migrate -s postgres://source -t postgres://target -o migration.sql</code></pre>
150+
<pre><code>Output modes:
151+
152+
- sql
153+
- table
154+
- json
155+
- dry-run review first</code></pre>
156+
</div>
157+
</section>
158+
</main>
159+
</div>
160+
</body>
161+
</html>

0 commit comments

Comments
 (0)