Skip to content

Commit bbf0c8c

Browse files
committed
shorter agents rules
1 parent 4f50f41 commit bbf0c8c

File tree

1 file changed

+4
-27
lines changed

1 file changed

+4
-27
lines changed

AGENTS.md

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -32,33 +32,10 @@ DATABASE_URL='mssql://root:Password123!@localhost/sqlpage' cargo test # all dbms
3232
- Components: defined in `./sqlpage/templates/*.handlebars`
3333
- Functions: `src/webserver/database/sqlpage_functions/functions.rs` registered with `make_function!`.
3434
- Components and functions are documented in [official website](./examples/official-site/sqlpage/migrations/); one migration per component and per function.
35-
- ```sql
36-
CREATE TABLE component(
37-
name TEXT PRIMARY KEY,
38-
description TEXT NOT NULL,
39-
icon TEXT, -- icon name from tabler icon
40-
introduced_in_version TEXT
41-
);
42-
43-
CREATE TABLE parameter_type(name TEXT PRIMARY KEY);
44-
INSERT INTO parameter_type(name) VALUES ('BOOLEAN'), ('COLOR'), ('HTML'), ('ICON'), ('INTEGER'), ('JSON'), ('REAL'), ('TEXT'), ('TIMESTAMP'), ('URL');
45-
46-
CREATE TABLE parameter(
47-
top_level BOOLEAN DEFAULT FALSE,
48-
name TEXT,
49-
component TEXT REFERENCES component(name) ON DELETE CASCADE,
50-
description TEXT,
51-
description_md TEXT,
52-
type TEXT REFERENCES parameter_type(name) ON DELETE CASCADE,
53-
optional BOOLEAN DEFAULT FALSE,
54-
);
55-
56-
CREATE TABLE example(
57-
component TEXT REFERENCES component(name) ON DELETE CASCADE,
58-
description TEXT,
59-
properties JSON,
60-
);
61-
```
35+
- tables
36+
- `component(name,description,icon,introduced_in_version)` -- icon name from tabler icon
37+
- `parameter(top_level BOOLEAN, name, component REFERENCES component(name), description, description_md, type, optional BOOLEAN)` parameter types: BOOLEAN, COLOR, HTML, ICON, INTEGER, JSON, REAL, TEXT, TIMESTAMP, URL
38+
- `example(component REFERENCES component(name), description, properties JSON)`
6239
- [Configuration](./configuration.md): see [AppConfig](./src/app_config.rs)
6340
- Routing: file-based in `src/webserver/routing.rs`; not found handled via `src/default_404.sql`.
6441
- Follow patterns from similar modules before introducing new abstractions.

0 commit comments

Comments
 (0)