Note for AI Agents: All Buster documentation is available via HTTP requests:
- Access any page from https://docs.buster.so/ by appending
.md
to the URL to get markdown format- For example: https://docs.buster.so/references/semantic-models.md
- Use tools like
curl
orfetch
to retrieve documentation as needed- Two specialized endpoints are available:
- https://docs.buster.so/llms.txt (concise overview)
- https://docs.buster.so/llms-full.txt (comprehensive reference)
string
: Text values (customer_name, product_category)timestamp
: Date and time values (created_at, order_date)boolean
: True/false values (is_active, is_completed)date
: Date without time componentnumber
/integer
: Numeric values used as identifiers or categoriesdecimal
/number
: Precise numeric values (e.g., price, revenue)integer
: Whole numbers (e.g., quantity, views)type
field for measures represents the raw data type from the database, not an aggregation type. Aggregation methods (SUM, AVG, etc.) are determined at query time or within metric definitions, not in the measure definition itself.
Best Practices for Measures:
orders.amount
) for clarity when referencing fields across modelsone-to-one
: Each record connects to exactly one recordone-to-many
: Parent record connects to multiple child recordsmany-to-one
: Multiple records connect to one parent recordmany-to-many
: Many-to-many relationship (usually requires a junction model)left
: Left join (default)inner
: Inner joinright
: Right joinfull-outer
: Full outer jointype
is left unspecified, it means the relationship can be joined in multiple ways depending on the query requirements. These fields provide guidance on the most appropriate join strategy for this relationship.
Best Practices for Relationships:
Metric
and Filter
expressions, allowing for dynamic input at query time.
string
: Text valuesnumber
: Decimal or floating-point valuesinteger
: Whole number valuesdate
: Date valuesboolean
: True/false valuessource_col
and ref_col
are correctly specifiedone-to-one
, many-to-one
, etc.)left
, inner
, right
, full-outer
)id
as a source_col
in one table, user_id
as a ref_col
in another)dbt ls
- Lists all models in your projectdbt docs generate
- Creates metadata files about your models and columnsdbt parse
- Validates dbt project files without running modelsdbt compile
- Compiles SQL without executing itdbt describe
- Shows model dependenciesdbt run
, dbt build
, etc.) as these could affect production data. Stick to metadata commands that only provide information.
buster generate
- Scaffolds semantic models based on your dbt project’s metadatabuster parse
- Validates the syntax and integrity of your Buster semantic modelsbuster deploy
- Deploys your semantic layerbuster generate
to create initial semantic modelsbuster parse
amount_usd
, duration_minutes
)_date
, etc.)id
, name
, or value
without context