Is there a way to make left external connections in Datamapper without resorting to a direct conversation with the data warehouse. I searched the net and the Datamapper document with failure in detail about how to do this.
Strict left outer joins seem to be pretty complicated.
Looking at the site:
68 # QueryPaths can be used to construct joins in a very declarative manner. 69 # 70 # Starting from a root model, you can call any relationship by its name. 71 # The returned object again responds to all property and relationship names 72 # that are defined in the relationship target model. 73 # 74 # This means that you can walk the chain of available relationships, and then 75 # match against a property at the end of that chain. The object returned by 76 # the last call to a property name also responds to all the comparison 77 # operators available in traditional queries. This makes for some powerful 78 # join construction! 79 # 80 Customer.all(Customer.orders.order_lines.item.sku.like => "%BLUE%")
Looking at the docs , it looks like the Query class has a relationship handler that knows foreign keys.
Source: https://habr.com/ru/post/1385156/More articles:Zip code subset (factor levels) - rvalue of text field for scriptlet - javascriptClojure: The difference between a list and a function that returns a list - clojureRspec tests under jruby on Windows run very slowly - windowsInvalid character warning in MVC razor view - asp.net-mvcflot plotpan vs plotclick: how to ignore the click event when panning is enabled? - clickIs this a mistake for liftweb TimeHelpers: 60.minutes is not equal to 1.hour - scalaIntent of commands and events in CQRS w / ES - cqrsproblems using X-Forwarded-For log filter for Windows servers - httpText with multiple Android columns - androidAll Articles