diff options
| author | Akshay Nair <phenax5@gmail.com> | 2026-06-03 23:57:21 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2026-06-03 23:57:21 +0530 |
| commit | ed4b84d2ca7e5b13d010effefb8ae676d084124a (patch) | |
| tree | 7aa142e52a3a2bd9e1d760dc8648e523d919dae7 /src/mandelbrot.sql | |
| parent | 3be6325b1292233fae4817b3b864eca7b9911898 (diff) | |
| download | sqlite-creative-coding-ed4b84d2ca7e5b13d010effefb8ae676d084124a.tar.gz sqlite-creative-coding-ed4b84d2ca7e5b13d010effefb8ae676d084124a.zip | |
Refactor image.sh to handle png + cleanup sql
Diffstat (limited to 'src/mandelbrot.sql')
| -rw-r--r-- | src/mandelbrot.sql | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mandelbrot.sql b/src/mandelbrot.sql index 1c25461..b83b751 100644 --- a/src/mandelbrot.sql +++ b/src/mandelbrot.sql @@ -1,5 +1,4 @@ -DELETE FROM images WHERE id = 'mandelbrot'; -INSERT INTO images (id, width, height) VALUES ('mandelbrot', 400, 400) RETURNING id; +INSERT OR REPLACE INTO images (id, width, height) VALUES ('mandelbrot', 400, 400) RETURNING id; WITH RECURSIVE image AS (SELECT *, 0.008 AS scale, (width * 5)/7 AS ox, (height / 2) AS oy FROM images WHERE id = 'mandelbrot'), |
