/try-malloy

Quick start for trying Malloy in VS Code in the browser

MIT LicenseMIT

Try Malloy

Click here to try Malloy instantly in your browser

This repository is a quick-start for playing with Malloy in VS Code. It can be used directly on Github's online editor, on vscode.dev, or inside a local VS Code instance. All that is required is an instance of VS Code and the Malloy extension. The extension can be installed by clicking on the Extensions section in the left sidebar and searching for "Malloy", or by opening airports.malloy and waiting for VS Code to suggest the Malloy extension.

The repository contains two important files:

  • A CSV file, airports.csv, with information about US airports
  • An airports.malloy file that contains a simple Malloy model that operates on the CSV file.

When airports.malloy is opened, the Malloy extension reads the file - a Malloy model - which tells the extension to load airports.csv into a local instance of DuckDB that is included by the extension. Once the data is loaded into DuckDB and the schema is read, the model is ready to be used.

There are instructions in the file for how to try a few things - go check it out! And follow along with the quick start if you'd like to learn more.

Additional Resources: