https://github.com/terrastruct/d2oracle-demo
https://github.com/terrastruct/d2oracle-demo
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/terrastruct/d2oracle-demo
- Owner: terrastruct
- Created: 2023-01-12T22:04:12.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-14T00:45:56.000Z (over 3 years ago)
- Last Synced: 2025-04-09T19:17:54.402Z (about 1 year ago)
- Language: Go
- Size: 1.74 MB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `d2oracle` demo
Source code for the blog post
[https://terrastruct.com/blog/post/generate-diagrams-programmatically/](https://terrastruct.com/blog/post/generate-diagrams-programmatically/).
This is a runnable example that reads a (very) limited subset of SQL statements from
`plan.sql` and generates SVGs for each step, also outputting the final `.d2` file when
it's done.
## Run
```
go run main.go
```