Motherduck is cloud based scale out relational SQL database.
vscode.dev is a web based version of VSCode that runs entirely in your browser. VSCode.dev can direcly work with github repositories from your web browser. You can create make branches, edit files and push back to the repositories without need a local machine.
Malloy is a semantic data modeling and query language that among other things runs as an extension in VSCode.
Together these three components make a great way to explore and access data.
This repository is an example of using these three components together. The example uses several datasets stored and shared in Motherduck. Loading the datamodels from this repository, into Malloy in vscode will allow you to build and run data analysis against the data in Motherduck using only your browser. You can modifiy these examples and/or follow this pattern with your own data.
- Goto https://app.motherduck.com and create an account
- Goto https://insiders.vscode.dev/github/malloydata/motherduck-examples?vscode-coi=
- Install the Malloy VSCode Extension (it should prompt you)
- Goto Motherduck and click settings then 'Copy Token'
- Open a Malloy file in the files pane for example imdb.malloy.
- Click on the 'M' in the right panel andd open Open Connections and make a new connection type: 'DuckDb' name: 'md', add your mother duck token
- Run the Open the attach data notebook
- Click 'Run All' to attach the example data to your motherduck database.
- Goto https://app.motherduck.com and create an account
- install VSCode
- At a command shell
git clone https//malloydata/motherduck-examples.git cd motherduck-examples code .
- Install the Malloy VSCode Extension (it should prompt you)
- Goto Motherduck and click settings then 'Copy Token'
- Open a Malloy file in the files pane for example imdb.malloy.
- Click on the 'M' in the right panel andd open Open Connections and make a new connection type: 'DuckDb' name: 'md', add your mother duck token
- Run the Open the attach data notebook
- Click 'Run All' to attach the example data to your motherduck database.
open setting`