You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`to_sql()`: Returns the PostgreSQL SQL type string (e.g., `"INTEGER"`, `"VARCHAR(255)"`)
114
+
-`to_sql()`: Returns the SQL type string (e.g., `"INTEGER"`, `"VARCHAR(255)"`)
115
115
-`to_rust_type(nullable: bool)`: Returns the Rust type string for SeaORM entity generation (e.g., `"i32"` or `"Option<i32>"`)
116
116
117
117
These methods replace the old standalone functions `column_type_sql()` and `rust_type()`.
@@ -134,7 +134,7 @@ pub struct ForeignKeyDef {
134
134
- The planner validates that column/table names follow the configured naming case
135
135
136
136
### SQL Generation Target
137
-
All SQL generation currently targets **PostgreSQL only**. When modifying the query builder, ensure PostgreSQL compatibility.
137
+
SQL generation currently uses PostgreSQL-compatible syntax. The query builder can be extended to support other database systems.
138
138
139
139
### JSON Schema Generation
140
140
The `vespertide-schema-gen` crate uses `schemars` to generate JSON Schemas from the Rust types. After modifying core data structures, regenerate schemas with:
@@ -155,4 +155,4 @@ Schema base URL can be overridden via `VESP_SCHEMA_BASE_URL` environment variabl
155
155
156
156
- YAML loading is not implemented (templates can be generated but not parsed)
157
157
- Runtime migration executor (`run_migrations`) in `vespertide-macro` is not implemented
158
-
-Only PostgreSQL SQL generation is supported
158
+
- SQL generation currently uses PostgreSQL-compatible syntax
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Vespertide
2
2
3
-
Declarative database schema management for PostgreSQL. Define your schemas in JSON, and Vespertide automatically generates migration plans and SQL from model diffs.
3
+
Declarative database schema management. Define your schemas in JSON, and Vespertide automatically generates migration plans and SQL from model diffs.
Copy file name to clipboardExpand all lines: SKILL.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
---
2
2
name: vespertide
3
-
description: Define PostgreSQL database schemas in JSON and generate migration plans. Use this skill when creating or modifying database models, defining tables with columns, constraints, indexes, and foreign keys for Vespertide-based projects.
3
+
description: Define database schemas in JSON and generate migration plans. Use this skill when creating or modifying database models, defining tables with columns, constraints, indexes, and foreign keys for Vespertide-based projects.
4
4
---
5
5
6
6
# Vespertide Database Schema Definition
7
7
8
-
This skill helps you create and manage database models using Vespertide, a declarative schema management tool for PostgreSQL.
8
+
This skill helps you create and manage database models using Vespertide, a declarative schema management tool.
9
9
10
10
## Installation
11
11
@@ -79,7 +79,7 @@ Column types in JSON can be either simple (string) or complex (object) values.
79
79
80
80
Simple types are represented as strings in JSON (snake_case):
81
81
82
-
| Type |PostgreSQL| Use Cases |
82
+
| Type |SQL Type| Use Cases |
83
83
|------|------------|-----------|
84
84
|`"small_int"`| SMALLINT | Small integers (-32768 to 32767) |
0 commit comments