In some applications the relation between tables are only present in code (not available to be analyzed by SQL Complete)
it would be nice if SQL Complete could be made aware of these somehow.
Example of conditional relation (from SAP)
SELECT * FROM OINV JOIN JDT1.TransType == '13' AND JDT1.Ref1 = OINV.DocEntry
This relation also holds between INV1 and JDT1
but not between ODLN and JDT1 for which TransType is required to be '15'.
Also OINV.DocEntry and ODLN.DocEntry is completely unrelated and it makes no sense to join on those.
The option should be able to handle name conventions e.g. by using regex: /O(\w\w\w)/ join /{$1}(\d+)/ on /{$1}{$2}/.DocEntry == /O{$1}/.DocEntry
option for user defined join completion
In some applications the relation between tables are only present in code (not available to be analyzed by SQL Complete)
it would be nice if SQL Complete could be made aware of these somehow.
Example of conditional relation (from SAP)
SELECT * FROM OINV JOIN JDT1.TransType == '13' AND JDT1.Ref1 = OINV.DocEntry
This relation also holds between INV1 and JDT1
but not between ODLN and JDT1 for which TransType is required to be '15'.
Also OINV.DocEntry and ODLN.DocEntry is completely unrelated and it makes no sense to join on those.
The option should be able to handle name conventions e.g. by using regex: /O(\w\w\w)/ join /{$1}(\d+)/ on /{$1}{$2}/.DocEntry == /O{$1}/.DocEntry