Browse Source

Explain results

Andrew 9 years ago
parent
commit
db788561fe
1 changed files with 28 additions and 1 deletions
  1. 28 1
      README.md

+ 28 - 1
README.md

@@ -187,6 +187,33 @@ smart_variables:
   city_id: "SELECT id, name FROM cities ORDER BY name ASC"
   city_id: "SELECT id, name FROM cities ORDER BY name ASC"
 ```
 ```
 
 
+The first column is the value of the variable, and the second column is the label.
+
+## Results
+
+### Linked Columns
+
+Link results to other pages in your apps or around the web. Specify a column name and where it should link to. You can use the value of the result with `{value}`.
+
+```yml
+linked_columns:
+  user_id: "/admin/users/{value}"
+  ip_address: "http://www.infosniper.net/index.php?ip_address={value}"
+```
+
+### Smart Columns
+
+```sql
+SELECT name, city_id FROM users
+```
+
+See which city the user belongs to without a join.
+
+```yml
+smart_columns:
+  city_id: "SELECT id, name FROM cities WHERE id IN {value}"
+```
+
 ## Charts
 ## Charts
 
 
 Blazer will automatically generate charts based on the types of the columns returned in your query.
 Blazer will automatically generate charts based on the types of the columns returned in your query.
@@ -217,7 +244,7 @@ SELECT gender, COUNT(*) FROM users GROUP BY 1
 
 
 ## Upgrading
 ## Upgrading
 
 
-### 1.0.0
+### 1.0.0 [unreleased]
 
 
 Add a migration for dashboards and checks
 Add a migration for dashboards and checks