Skip to content
This repository was archived by the owner on Jul 7, 2026. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
e927888
Refactoring
Oct 16, 2018
ab004c9
Merge branch 'master' into develop
Oct 16, 2018
3bca492
Working on documentation
Oct 16, 2018
e436a7b
Upgraded to dotnet 2.1 (issue #38)
Oct 16, 2018
eda21e5
Documentation improvements
Oct 16, 2018
9027ece
Update Dockerfile with dotnet no-restore option.
TerraVenil Oct 29, 2018
c43e261
Update appveyor.yml with dotnet no-restore option.
TerraVenil Oct 29, 2018
bed9f59
Remove netcoreapp2.1 framework option from publish due to TargetFrame…
TerraVenil Oct 29, 2018
1fc1469
Fixed docker build issues
Oct 31, 2018
a151cb3
Merge branch 'master' into develop
Oct 31, 2018
2c059a0
Delete dead reset.css file.
TerraVenil Oct 31, 2018
89459fa
Merge pull request #43 from TerraVenil/dead_css
Nov 1, 2018
913e834
Implemented DataStore option to enable QueryTree to use a MS SQL Serv…
Feb 11, 2019
55301fa
Issue #27 removing dep on npm
Feb 11, 2019
7aeb0f5
Removing nodejs from docker image as it's no longer required
Feb 12, 2019
783fbf2
Tidying up docs
Feb 12, 2019
a445233
Updating docs
Feb 11, 2019
e093f32
Formatting
Feb 12, 2019
721f82a
Working on adding base uri to the configuration
Feb 12, 2019
f9db2f7
Fixing issues with usign QueryTree at a custom base uri
Feb 12, 2019
c6e17a8
Fixing bug with scheduling modal
Feb 12, 2019
07aa144
Updated generated files
Feb 21, 2019
83dae66
Updated line endings
Feb 21, 2019
6c43560
Implementing Windows Authentication
Feb 26, 2019
a8f8fef
Fixed issue with schemas breaking convention based relationship detec…
Feb 28, 2019
3eacacb
Updating docs, autojoin works on '_id' columns too
Feb 28, 2019
cb916e2
Updated framework and deps
Feb 28, 2019
52fa073
Updated framework versions
Feb 28, 2019
837ec3e
Updated SQL Server connection string arguments
Mar 7, 2019
be5b403
Merge branch 'master' into develop
May 16, 2019
eb8f640
fix-issue-63
Rodrigo-Cardoso May 17, 2019
3022bc5
Update mail.md
Rodrigo-Cardoso May 17, 2019
1feee01
Merge pull request #64 from Rodrigo-Cardoso/issue-63-smtp-configurati…
May 17, 2019
6e840d9
fix(ci): Update circle ci docker images to match Dockerfile
PandelisZ May 17, 2019
ce51dbf
Merge pull request #66 from d4software/fix-docker-ci
May 17, 2019
f265c9b
update(footer): Add contributors to footer
PandelisZ May 17, 2019
2d6486e
Merge pull request #68 from d4software/contributors
Jun 19, 2019
c088967
Merge branch 'master' into develop
Jul 1, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updating docs, autojoin works on '_id' columns too
  • Loading branch information
Daniel Thompson
Daniel Thompson committed Feb 28, 2019
commit 3eacacbd0591a36080b4cb52438f096b09628bcb
11 changes: 5 additions & 6 deletions docs/autojoin.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Auto-Join

When a table is selected in the query builder, QueryTree checks for other tables that it can automatically join onto and prompts the user to select those related tables, thereby including the columns from the related table in the results that are returned.
When a table is selected in the query builder, QueryTree checks for other tables that it can automatically join onto and prompts the user to select those related tables, thereby including the columns from the related table in the results that are returned.

QueryTree can automatically join from "child" tables onto "parent" tables, but not the other way around. For example, if the user selected the "Orders" table, QueryTree could auto-join onto "Users" or "Products". But selecting "Users" will not prompt you to include information from the "Orders" table.
QueryTree can automatically join from "child" tables onto "parent" tables, but not the other way around. For example, if the user selected the "Orders" table, QueryTree could auto-join onto "Users" or "Products". But selecting "Users" will not prompt you to include information from the "Orders" table.

This limitation is primarily for usability, not a technical reasons. The level of user that QueryTree is aimed at, generally seem to understand the idea of selecting Orders and then adding in the related User or Product information. However, if QueryTree were to join from Users onto Orders, the QueryTree user would see the User information repeated multiple times, in our experience, this causes confusion.

Expand Down Expand Up @@ -40,9 +40,9 @@ Foreign keys on to compound (multiple column) keys are not supported.

In addition to looking for foreign keys, QueryTree will look for columns on the selected table, that:

* Are not the primary key
* Are not already part of a foreign key
* Match the name of another table, followed by the letters "id". This check is not case sensitive.
* Are not the primary key
* Are not already part of a foreign key
* Match the name of another table, followed by the letters "_id" or "id". This check is not case sensitive.

For example, given the following two tables, QueryTree will prompt to join from "orders" to "users". Despite the fact that there are no foreign keys.

Expand All @@ -64,7 +64,6 @@ create table orders
);
```


## Caching

QueryTree will interrogate the structure of your database the first time it is queried, and cache the information for an hour. If you change the database structure and want to see the effects immidiately, please restart the QueryTree process to flush the cache.