Skip to content

Commit bd115a1

Browse files
committed
new release features
1 parent 52d8948 commit bd115a1

File tree

3 files changed

+30
-4
lines changed

3 files changed

+30
-4
lines changed

docs/Logic-Use.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,18 @@ Observe the `server_default` property. This value is used by LogicBank, as foll
212212

213213
 
214214

215+
#### Aggregates defaulted to 0
216+
217+
Aggregate derivations (sums and counts) are defaulted to 0.
218+
219+
 
220+
221+
#### All Defaults
222+
223+
You can set the environment variable `ALL_DEFAULTS` to force numeric values to 0, and string values to the null string. This has no effect on dates.
224+
225+
 
226+
215227
## Updating and Deleting
216228

217229
These require you first obtain the row, either through a model class accessor (e.g., retrieve a parent row), or a SQLAlchemy call. In any case, alter the row as required, and issue `logic_row.update()' (or delete). As for insert, this triggers logic execution.

docs/WebGenAI-CLI.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,24 @@ The logic is non-trivial:
197197
198198
 
199199
200+
#### Conditional Derivations
201+
202+
You can make derivations conditional, for example:
203+
204+
```html title='conditional logic'
205+
Provide a 10% discount when buying more than 10 carbon neutral products
206+
207+
The Item carbon neutral is copied from the Product carbon neutral
208+
```
209+
You can find this example in the Manager Readme; see **2. New Database** > **You can iterate the logic and data model**.
210+
211+
 
212+
200213
#### Cardinality Patterns
201214
202215
Logic GenAI training has enabled the following:
203216
204-
```
217+
```html title='Cardinality Patterns'
205218
Products have Notices, with severity 0-5.
206219
207220
Raise and error if product is orderable == True and there are any severity 5 Notices, or more than 3 Notices.

docs/WebGenAI.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Description: Instantly Create and Run Database Projects - GenAI, Flask, APIs, SQ
3131

3232
 
3333

34-
> Web/GenAI is based on API Logic Server - [docs here.](Doc-Home.md){:target="_blank" rel="noopener"}
34+
> Web/GenAI is based on API Logic Server - [docs home here.](Doc-Home.md){:target="_blank" rel="noopener"}. API Logic Server provides the CLI functions used by WebGenAI - for more on the GenAI CLI, [click here](WebGenAI-CLI.md){:target="_blank" rel="noopener"}.
3535
3636
*Click* the image below to watch a 2 minute video:
3737

@@ -155,9 +155,10 @@ Use LogicBank to enforce the Check Credit:
155155

156156
You can verify this by altering a sample order/item with a very high quantity, and verifying the credit limit is checked. (Note this is not trivial - 3 table transaction.)
157157

158-
> Note: at the time of this writing, the sample data sometimes does not totally reflect the derivation rules. This is under investigation. You can sometimes resolve this using iterations, eg, `please initialize the customer balance properly`.
158+
For more, see
159159

160-
For more, see the [logic editor](WebGenAI-logic-editor.md){:target="_blank" rel="noopener"}.
160+
* the [logic editor](WebGenAI-logic-editor.md){:target="_blank" rel="noopener"}
161+
* [natural languge logic](WebGenAI-CLI.md#natural-language-logic){:target="_blank" rel="noopener"}
161162

162163
 
163164

0 commit comments

Comments
 (0)