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
Copy file name to clipboardExpand all lines: doc/user/quick-sql-grammar.md
+16-5
Original file line number
Diff line number
Diff line change
@@ -73,12 +73,14 @@
73
73
| /api | Generate PL/SQL package API to query, insert, update, and delete data within a table. Adds Oracle auditing, by default AUDIT ALL ON <TABLE NAME>. |
74
74
| /audit | Adds Oracle auditing, by default AUDIT ALL ON <TABLE NAME>. |
75
75
| /auditcols, /audit cols, /audit columns | Automatically adds an UPDATED, UPDATED_BY, INSERTED, and INSERTED_BY columns and the trigger logic to set column values. |
76
+
| /check | table level constraint |
76
77
| /colprefix | Prefix all columns of a given table with this value. Automatically adds an underscore if not provided. |
77
78
| /compress, /compressed | Table will be created compressed. |
78
79
| /insert NN | Generate NN SQL INSERT statement(s) with random data, for example: /INSERT 20. (Maximum = 1000) |
79
80
| /rest | Generate REST enablement of the table using Oracle REST Data Services (ORDS) |
80
81
| /select | Generate SQL SELECT statement after generating data for each table |
| /idx, /index, /indexed | Creates a non unique index |
113
-
| /unique| Creates a unique constraint |
115
+
| /unique, /uk| Creates a unique constraint |
114
116
| /check | Creates a check constraint with comma or white space delimited values e.g. /check Yes, No |
115
117
| /constant | When generating data set this column to a constant value. For example /constant NYC. |
116
118
| /default | Adds default value if the column is null |
@@ -121,6 +123,9 @@ and is usually omitted from QSQL schema definition.
121
123
| /between | Adds a between check constraint on the column, for example /between 1 and 100 |
122
124
| /hidden, /invisible | Hidden columns are not displayed using select * from table. |
123
125
| /references, /reference, /fk | Foreign key references e.g. /references table_name. Note you can reference tables that are not part of your model. |
126
+
| /cascade | on delete cascade |
127
+
| /setnull | on delete set null |
128
+
| /references, /reference, /fk | Foreign key references e.g. /references table_name. Note you can reference tables that are not part of your model. |
124
129
| /pk | Identifies column as the primary key of the table. It is recommended not manually specify primary keys and let this app create primary key columns automatically. |
125
130
| --, [comments]| Enclose comments using square brackets or using dash dash syntax |
0 commit comments