Skip to content
This repository
Browse code

[minor] Use default aliased backend "sql" in hello world example

  • Loading branch information...
commit fe5a3cdbefb9de552afd3d30c3425850e40cc202 1 parent 6402037
Stefan Urbanek authored
2  cubes/backends/sql/mapper.py
@@ -153,7 +153,7 @@ def attribute(self, name):
153 153
154 154 return self.attributes[name]
155 155
156   - def logical(self, attribute, locale=False):
  156 + def logical(self, attribute, locale=None):
157 157 """Returns logical reference as string for `attribute` in `dimension`.
158 158 If `dimension` is ``Null`` then fact table is assumed. The logical
159 159 reference might have following forms:
2  examples/hello_world/aggregate.py
@@ -2,7 +2,7 @@
2 2
3 3 # 1. Prepare SQL data in memory
4 4 model = cubes.load_model("model.json")
5   -workspace = cubes.create_workspace("sql.star", model,
  5 +workspace = cubes.create_workspace("sql", model,
6 6 url='sqlite:///data.sqlite')
7 7
8 8 # 2. Create a model
2  examples/hello_world/slicer.ini
@@ -5,7 +5,7 @@ reload: yes
5 5 log_level: info
6 6 prettyprint: yes
7 7
8   -backend: sql.star
  8 +backend: sql
9 9
10 10 [workspace]
11 11 url: sqlite:///data.sqlite

0 comments on commit fe5a3cd

Please sign in to comment.
Something went wrong with that request. Please try again.