mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Add LookML
This commit is contained in:
@@ -1225,6 +1225,14 @@ Logtalk:
|
|||||||
- .lgt
|
- .lgt
|
||||||
- .logtalk
|
- .logtalk
|
||||||
|
|
||||||
|
LookML:
|
||||||
|
type: programming
|
||||||
|
lexer: YAML
|
||||||
|
ace_mode: yaml
|
||||||
|
color: "#652B81"
|
||||||
|
extensions:
|
||||||
|
- .lookml
|
||||||
|
|
||||||
Lua:
|
Lua:
|
||||||
type: programming
|
type: programming
|
||||||
ace_mode: lua
|
ace_mode: lua
|
||||||
|
|||||||
43
samples/LookML/comments.view.lookml
Normal file
43
samples/LookML/comments.view.lookml
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
- view: comments
|
||||||
|
fields:
|
||||||
|
|
||||||
|
- dimension: id
|
||||||
|
primary_key: true
|
||||||
|
type: int
|
||||||
|
sql: ${TABLE}.id
|
||||||
|
|
||||||
|
- dimension: body
|
||||||
|
sql: ${TABLE}.body
|
||||||
|
|
||||||
|
- dimension_group: created
|
||||||
|
type: time
|
||||||
|
timeframes: [time, date, week, month]
|
||||||
|
sql: ${TABLE}.created_at
|
||||||
|
|
||||||
|
- dimension: headline_id
|
||||||
|
type: int
|
||||||
|
hidden: true
|
||||||
|
sql: ${TABLE}.headline_id
|
||||||
|
|
||||||
|
- dimension_group: updated
|
||||||
|
type: time
|
||||||
|
timeframes: [time, date, week, month]
|
||||||
|
sql: ${TABLE}.updated_at
|
||||||
|
|
||||||
|
- dimension: user_id
|
||||||
|
type: int
|
||||||
|
hidden: true
|
||||||
|
sql: ${TABLE}.user_id
|
||||||
|
|
||||||
|
- measure: count
|
||||||
|
type: count
|
||||||
|
detail: detail*
|
||||||
|
|
||||||
|
|
||||||
|
# ----- Detail ------
|
||||||
|
sets:
|
||||||
|
detail:
|
||||||
|
- id
|
||||||
|
- headlines.id
|
||||||
|
- headlines.name
|
||||||
|
- users.id
|
||||||
Reference in New Issue
Block a user