Comments (4)
Thanks @sparkofreason, for reporting this issue.
I can reproduce it with the below schema
![image](https://private-user-images.githubusercontent.com/1128916/261606453-c7662020-3506-46b3-bbea-b725efcd5caf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgyOTIwNTksIm5iZiI6MTcxODI5MTc1OSwicGF0aCI6Ii8xMTI4OTE2LzI2MTYwNjQ1My1jNzY2MjAyMC0zNTA2LTQ2YjMtYmJlYS1iNzI1ZWZjZDVjYWYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MTNUMTUxNTU5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTU4NTg5NzRiODZjYjcwOTE3MDg3ODBkMmU4OWJhZTkyODRjOGRmZTY5YTY5OTgxZTEzOWNkMTExNDhiOGM4YSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Ia2iR2bvcB01XZ6S1ICHM1KgDOoMiE9G7dp2jXzIs_o)
CREATE TABLE account (
acc_num INTEGER,
acc_type INTEGER,
acc_descr CHAR(20),
PRIMARY KEY (acc_num, acc_type));
CREATE TABLE sub_account (
sub_acc INTEGER PRIMARY KEY,
ref_num INTEGER NOT NULL,
ref_type INTEGER NOT NULL,
sub_descr CHAR(20),
FOREIGN KEY (ref_num, ref_type) REFERENCES account);
Currently, it generates four relationship attributes
:account/ref-num-sub-accounts
:account/ref-type-sub-accounts
:sub-account/account-by-ref-num
:sub-account/account-by-ref-type
Post this fix (which I will address in a week's time), It will have two extra relationship attributes
:account/sub-accounts
:sub-account/account
Which will join based on the composite foreign key.
from honeyeql.
@sparkofreason I did some initial analysis today. It is a bit more complicated than I initially thought. If I am not wrong, it will take at least half a day of work. So, it won't be possible for me to work on it this week. Let me try my best to find some time to wrap this up!
from honeyeql.
Hi @sparkofreason,
It took way more than I expected, and thankfully, I used the holidays effectively to bring it to closure.
Sample Queries: https://github.com/tamizhvendan/honeyeql/blob/1.0.2/test/suite.edn#L698-L723
Let me know your feedback with the latest version :)
from honeyeql.
Awesome! Thank you, I will take a look.
from honeyeql.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from honeyeql.