LogicBank
LogicBank copied to clipboard
Declare multi-table rules for SQLAlchemy update logic -- 40X more concise, Python for extensibility.
elif isinstance(each_column.type, sqlalchemy.sql.sqltypes.DECIMAL): default = Decimal(default) elif isinstance(each_column.type, sqlalchemy.sql.sqltypes.NUMERIC): default = Decimal(default)
Hi Val Huber, I really like your project but was wondering if in addition to SQLAlchemy DjangoORM could be supported as well. We use Django extensively and having a rule...
Removes guessing about proper values of LogicRow.ins_upd_dlt
An uncommon data model concept is a child table with 2 foreign keys to the ***same table***. For example, an employee might have a WorksForDeptNum, and an OnLoanDeptNum - both...
``` File "D:\db\logic.py", line 8, in declare_logic Rule.sum( File "C:\lib\site-packages\logic_bank\logic_bank.py", line 104, in sum return Sum(derive, as_sum_of, where) File "C:\lib\site-packages\logic_bank\rule_type\sum.py", line 30, in __init__ self._child_role_name = self.get_child_role_name(child_attrs=child_attrs) File "C:\\lib\site-packages\logic_bank\rule_type\aggregate.py", line...
Added the following statement, but it seems to have no effect ``` LogicBank.activate(session=session, activator=declare_logic) ```
See the [Allocation](https://github.com/valhuber/Allocation) sample. Throws: `Data error Missing relationship from Parent Provider: to child Allocation: of class: PaymentAllocation`. Root cause is in `LogicRow`: ```python def link(self, to_parent: 'LogicRow'): """ set...
Should throw an exception