You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go get -u -v github.com/go-sql-driver/mysql
go get -u -v github.com/dgrijalva/jwt-go
go get -u -v github.com/go-sql-driver/mysql
go get -u -v github.com/joho/godotenv
go get -u -v github.com/paulmach/go.geojson
go get -u -v github.com/rs/cors
Building on file save
while inotifywait -e close_write *.go;do go build ;done
while inotifywait -e close_write *.go;do go build ;done
mysql snippets
SELECT DATE_ADD(curdate(), INTERVAL 6 MONTH);
SELECT thema,DATE_FORMAT(von,'%d.%m.%Y %H:%i') as von,DATE_FORMAT(bis,'%d.%m.%Y %H:%i') as bis,typ,plz,ort,bundesland,beschreibung,eingetragen_von,eingetragen_von_kontakt,X,Y FROM dates_with_location WHEREdate(von) between curdate() and DATE_ADD(curdate(), INTERVAL 6 MONTH);
SELECT thema,DATE_FORMAT(von,'%d.%m.%Y %H:%i') as von,DATE_FORMAT(bis,'%d.%m.%Y %H:%i') as bis,typ,plz,ort,bundesland,beschreibung,eingetragen_von,eingetragen_von_kontakt,X,Y FROM dates_with_location WHEREdate(von) between curdate() and DATE_ADD(curdate(), INTERVAL 6 MONTH) and TYP REGEXP 'NAJU';
CREATE OR REPLACEVIEWnext_6monthASSELECT thema,DATE_FORMAT(von,'%d.%m.%Y %H:%i') as von,DATE_FORMAT(bis,'%d.%m.%Y %H:%i') as bis,typ,plz,ort,bundesland,beschreibung,eingetragen_von,eingetragen_von_kontakt,X,Y FROM dates_with_location WHEREdate(von) between curdate() and DATE_ADD(curdate(), INTERVAL 6 MONTH);