From fa53ba313f0ef7f6c67adf225dffc28ac705cda3 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Mon, 17 Oct 2022 14:56:36 -0400 Subject: [PATCH] flatten, use regexe parse --- .../{2011/12 => }/2011-12-21_python-progress-bar.rst | 0 .../01 => }/2012-01-05_custom-django-urlfield.rst | 0 .../01 => }/2012-01-13_you-can-un-expire-a-gpg-key.rst | 0 .../02 => }/2012-02-08_vertical_bars_in_graphite.rst | 0 content/blog/{2012/02 => }/2012-02-17_hubspot.rst | 0 .../blog/{2012/03 => }/2012-03-08_some-bash-tips.rst | 0 .../blog/{2012/05 => }/2012-05-04_ganymede_twilio.rst | 0 content/blog/{2012/05 => }/2012-05-07_hypertherm.rst | 0 .../blog/{2012/05 => }/2012-05-25_harry-delmolino.rst | 0 .../2012-11-07_cfengine3-install-on-centos-5-7.rst | 0 .../2013-07-02_getting-started-in-python-part-1.rst | 2 +- ...i-have-too-many-django-manytomany-queries-fixed.rst | 0 ...ger-a-post_save-in-django-but-still-modify-data.rst | 0 content/blog/{2014/06 => }/2014-06-21_readline.rst | 0 .../10 => }/2014-10-01_first_day_java_college.rst | 0 .../{2015/01 => }/2015-01-09_ssh-agent-on-boot.rst | 0 .../blog/{2015/01 => }/2015-01-13_python-debugger.rst | 0 .../{2015/01 => }/2015-01-28_too-many-open-files.rst | 0 content/blog/{2021/10 => }/2021-10-31_hello-world.rst | 0 ...21-11-04_python3-github-cli-tool-as-a-refresher.rst | 0 .../11 => }/2021-11-05_finished-my-github-cli-tool.rst | 0 .../2021-11-11_postmortem-of-a-fun-couple-bugs.rst | 0 .../{2022/01 => }/2022-01-09_garage-door-opener.rst | 0 .../{2022/05 => }/2022-05-07_an-update-on-flying.rst | 0 .../2022-06-01_writing-an-epub-parser-part-1.rst | 0 ...itoring-a-co2-tank-in-a-lab-with-a-raspberry-pi.rst | 0 .../blog/{2022/10 => }/2022-10-13_scrollbar-colors.rst | 0 content/blog/{2022/10 => }/2022-10-16_pelican.rst | 0 .../10 => }/2022-10-17_comparing-go-gorm-and-sqlx.rst | 10 +++++++--- 29 files changed, 8 insertions(+), 4 deletions(-) rename content/blog/{2011/12 => }/2011-12-21_python-progress-bar.rst (100%) rename content/blog/{2012/01 => }/2012-01-05_custom-django-urlfield.rst (100%) rename content/blog/{2012/01 => }/2012-01-13_you-can-un-expire-a-gpg-key.rst (100%) rename content/blog/{2012/02 => }/2012-02-08_vertical_bars_in_graphite.rst (100%) rename content/blog/{2012/02 => }/2012-02-17_hubspot.rst (100%) rename content/blog/{2012/03 => }/2012-03-08_some-bash-tips.rst (100%) rename content/blog/{2012/05 => }/2012-05-04_ganymede_twilio.rst (100%) rename content/blog/{2012/05 => }/2012-05-07_hypertherm.rst (100%) rename content/blog/{2012/05 => }/2012-05-25_harry-delmolino.rst (100%) rename content/blog/{2012/11 => }/2012-11-07_cfengine3-install-on-centos-5-7.rst (100%) rename content/blog/{2013/07 => }/2013-07-02_getting-started-in-python-part-1.rst (99%) rename content/blog/{2013/08 => }/2013-08-06_help-i-have-too-many-django-manytomany-queries-fixed.rst (100%) rename content/blog/{2013/11 => }/2013-11-13_how-to-not-trigger-a-post_save-in-django-but-still-modify-data.rst (100%) rename content/blog/{2014/06 => }/2014-06-21_readline.rst (100%) rename content/blog/{2014/10 => }/2014-10-01_first_day_java_college.rst (100%) rename content/blog/{2015/01 => }/2015-01-09_ssh-agent-on-boot.rst (100%) rename content/blog/{2015/01 => }/2015-01-13_python-debugger.rst (100%) rename content/blog/{2015/01 => }/2015-01-28_too-many-open-files.rst (100%) rename content/blog/{2021/10 => }/2021-10-31_hello-world.rst (100%) rename content/blog/{2021/11 => }/2021-11-04_python3-github-cli-tool-as-a-refresher.rst (100%) rename content/blog/{2021/11 => }/2021-11-05_finished-my-github-cli-tool.rst (100%) rename content/blog/{2021/11 => }/2021-11-11_postmortem-of-a-fun-couple-bugs.rst (100%) rename content/blog/{2022/01 => }/2022-01-09_garage-door-opener.rst (100%) rename content/blog/{2022/05 => }/2022-05-07_an-update-on-flying.rst (100%) rename content/blog/{2022/06 => }/2022-06-01_writing-an-epub-parser-part-1.rst (100%) rename content/blog/{2022/06 => }/2022-06-02_2016-monitoring-a-co2-tank-in-a-lab-with-a-raspberry-pi.rst (100%) rename content/blog/{2022/10 => }/2022-10-13_scrollbar-colors.rst (100%) rename content/blog/{2022/10 => }/2022-10-16_pelican.rst (100%) rename content/blog/{2022/10 => }/2022-10-17_comparing-go-gorm-and-sqlx.rst (72%) diff --git a/content/blog/2011/12/2011-12-21_python-progress-bar.rst b/content/blog/2011-12-21_python-progress-bar.rst similarity index 100% rename from content/blog/2011/12/2011-12-21_python-progress-bar.rst rename to content/blog/2011-12-21_python-progress-bar.rst diff --git a/content/blog/2012/01/2012-01-05_custom-django-urlfield.rst b/content/blog/2012-01-05_custom-django-urlfield.rst similarity index 100% rename from content/blog/2012/01/2012-01-05_custom-django-urlfield.rst rename to content/blog/2012-01-05_custom-django-urlfield.rst diff --git a/content/blog/2012/01/2012-01-13_you-can-un-expire-a-gpg-key.rst b/content/blog/2012-01-13_you-can-un-expire-a-gpg-key.rst similarity index 100% rename from content/blog/2012/01/2012-01-13_you-can-un-expire-a-gpg-key.rst rename to content/blog/2012-01-13_you-can-un-expire-a-gpg-key.rst diff --git a/content/blog/2012/02/2012-02-08_vertical_bars_in_graphite.rst b/content/blog/2012-02-08_vertical_bars_in_graphite.rst similarity index 100% rename from content/blog/2012/02/2012-02-08_vertical_bars_in_graphite.rst rename to content/blog/2012-02-08_vertical_bars_in_graphite.rst diff --git a/content/blog/2012/02/2012-02-17_hubspot.rst b/content/blog/2012-02-17_hubspot.rst similarity index 100% rename from content/blog/2012/02/2012-02-17_hubspot.rst rename to content/blog/2012-02-17_hubspot.rst diff --git a/content/blog/2012/03/2012-03-08_some-bash-tips.rst b/content/blog/2012-03-08_some-bash-tips.rst similarity index 100% rename from content/blog/2012/03/2012-03-08_some-bash-tips.rst rename to content/blog/2012-03-08_some-bash-tips.rst diff --git a/content/blog/2012/05/2012-05-04_ganymede_twilio.rst b/content/blog/2012-05-04_ganymede_twilio.rst similarity index 100% rename from content/blog/2012/05/2012-05-04_ganymede_twilio.rst rename to content/blog/2012-05-04_ganymede_twilio.rst diff --git a/content/blog/2012/05/2012-05-07_hypertherm.rst b/content/blog/2012-05-07_hypertherm.rst similarity index 100% rename from content/blog/2012/05/2012-05-07_hypertherm.rst rename to content/blog/2012-05-07_hypertherm.rst diff --git a/content/blog/2012/05/2012-05-25_harry-delmolino.rst b/content/blog/2012-05-25_harry-delmolino.rst similarity index 100% rename from content/blog/2012/05/2012-05-25_harry-delmolino.rst rename to content/blog/2012-05-25_harry-delmolino.rst diff --git a/content/blog/2012/11/2012-11-07_cfengine3-install-on-centos-5-7.rst b/content/blog/2012-11-07_cfengine3-install-on-centos-5-7.rst similarity index 100% rename from content/blog/2012/11/2012-11-07_cfengine3-install-on-centos-5-7.rst rename to content/blog/2012-11-07_cfengine3-install-on-centos-5-7.rst diff --git a/content/blog/2013/07/2013-07-02_getting-started-in-python-part-1.rst b/content/blog/2013-07-02_getting-started-in-python-part-1.rst similarity index 99% rename from content/blog/2013/07/2013-07-02_getting-started-in-python-part-1.rst rename to content/blog/2013-07-02_getting-started-in-python-part-1.rst index 078ba55..148985a 100644 --- a/content/blog/2013/07/2013-07-02_getting-started-in-python-part-1.rst +++ b/content/blog/2013-07-02_getting-started-in-python-part-1.rst @@ -3,7 +3,7 @@ Getting started in Python Part 1 :date: 2013-07-02 03:59 :author: tyrel :category: Tech -:tags: python2, pip, virtualenv +:tags: python, pip, virtualenv :slug: getting-started-in-python-part-1 :status: published diff --git a/content/blog/2013/08/2013-08-06_help-i-have-too-many-django-manytomany-queries-fixed.rst b/content/blog/2013-08-06_help-i-have-too-many-django-manytomany-queries-fixed.rst similarity index 100% rename from content/blog/2013/08/2013-08-06_help-i-have-too-many-django-manytomany-queries-fixed.rst rename to content/blog/2013-08-06_help-i-have-too-many-django-manytomany-queries-fixed.rst diff --git a/content/blog/2013/11/2013-11-13_how-to-not-trigger-a-post_save-in-django-but-still-modify-data.rst b/content/blog/2013-11-13_how-to-not-trigger-a-post_save-in-django-but-still-modify-data.rst similarity index 100% rename from content/blog/2013/11/2013-11-13_how-to-not-trigger-a-post_save-in-django-but-still-modify-data.rst rename to content/blog/2013-11-13_how-to-not-trigger-a-post_save-in-django-but-still-modify-data.rst diff --git a/content/blog/2014/06/2014-06-21_readline.rst b/content/blog/2014-06-21_readline.rst similarity index 100% rename from content/blog/2014/06/2014-06-21_readline.rst rename to content/blog/2014-06-21_readline.rst diff --git a/content/blog/2014/10/2014-10-01_first_day_java_college.rst b/content/blog/2014-10-01_first_day_java_college.rst similarity index 100% rename from content/blog/2014/10/2014-10-01_first_day_java_college.rst rename to content/blog/2014-10-01_first_day_java_college.rst diff --git a/content/blog/2015/01/2015-01-09_ssh-agent-on-boot.rst b/content/blog/2015-01-09_ssh-agent-on-boot.rst similarity index 100% rename from content/blog/2015/01/2015-01-09_ssh-agent-on-boot.rst rename to content/blog/2015-01-09_ssh-agent-on-boot.rst diff --git a/content/blog/2015/01/2015-01-13_python-debugger.rst b/content/blog/2015-01-13_python-debugger.rst similarity index 100% rename from content/blog/2015/01/2015-01-13_python-debugger.rst rename to content/blog/2015-01-13_python-debugger.rst diff --git a/content/blog/2015/01/2015-01-28_too-many-open-files.rst b/content/blog/2015-01-28_too-many-open-files.rst similarity index 100% rename from content/blog/2015/01/2015-01-28_too-many-open-files.rst rename to content/blog/2015-01-28_too-many-open-files.rst diff --git a/content/blog/2021/10/2021-10-31_hello-world.rst b/content/blog/2021-10-31_hello-world.rst similarity index 100% rename from content/blog/2021/10/2021-10-31_hello-world.rst rename to content/blog/2021-10-31_hello-world.rst diff --git a/content/blog/2021/11/2021-11-04_python3-github-cli-tool-as-a-refresher.rst b/content/blog/2021-11-04_python3-github-cli-tool-as-a-refresher.rst similarity index 100% rename from content/blog/2021/11/2021-11-04_python3-github-cli-tool-as-a-refresher.rst rename to content/blog/2021-11-04_python3-github-cli-tool-as-a-refresher.rst diff --git a/content/blog/2021/11/2021-11-05_finished-my-github-cli-tool.rst b/content/blog/2021-11-05_finished-my-github-cli-tool.rst similarity index 100% rename from content/blog/2021/11/2021-11-05_finished-my-github-cli-tool.rst rename to content/blog/2021-11-05_finished-my-github-cli-tool.rst diff --git a/content/blog/2021/11/2021-11-11_postmortem-of-a-fun-couple-bugs.rst b/content/blog/2021-11-11_postmortem-of-a-fun-couple-bugs.rst similarity index 100% rename from content/blog/2021/11/2021-11-11_postmortem-of-a-fun-couple-bugs.rst rename to content/blog/2021-11-11_postmortem-of-a-fun-couple-bugs.rst diff --git a/content/blog/2022/01/2022-01-09_garage-door-opener.rst b/content/blog/2022-01-09_garage-door-opener.rst similarity index 100% rename from content/blog/2022/01/2022-01-09_garage-door-opener.rst rename to content/blog/2022-01-09_garage-door-opener.rst diff --git a/content/blog/2022/05/2022-05-07_an-update-on-flying.rst b/content/blog/2022-05-07_an-update-on-flying.rst similarity index 100% rename from content/blog/2022/05/2022-05-07_an-update-on-flying.rst rename to content/blog/2022-05-07_an-update-on-flying.rst diff --git a/content/blog/2022/06/2022-06-01_writing-an-epub-parser-part-1.rst b/content/blog/2022-06-01_writing-an-epub-parser-part-1.rst similarity index 100% rename from content/blog/2022/06/2022-06-01_writing-an-epub-parser-part-1.rst rename to content/blog/2022-06-01_writing-an-epub-parser-part-1.rst diff --git a/content/blog/2022/06/2022-06-02_2016-monitoring-a-co2-tank-in-a-lab-with-a-raspberry-pi.rst b/content/blog/2022-06-02_2016-monitoring-a-co2-tank-in-a-lab-with-a-raspberry-pi.rst similarity index 100% rename from content/blog/2022/06/2022-06-02_2016-monitoring-a-co2-tank-in-a-lab-with-a-raspberry-pi.rst rename to content/blog/2022-06-02_2016-monitoring-a-co2-tank-in-a-lab-with-a-raspberry-pi.rst diff --git a/content/blog/2022/10/2022-10-13_scrollbar-colors.rst b/content/blog/2022-10-13_scrollbar-colors.rst similarity index 100% rename from content/blog/2022/10/2022-10-13_scrollbar-colors.rst rename to content/blog/2022-10-13_scrollbar-colors.rst diff --git a/content/blog/2022/10/2022-10-16_pelican.rst b/content/blog/2022-10-16_pelican.rst similarity index 100% rename from content/blog/2022/10/2022-10-16_pelican.rst rename to content/blog/2022-10-16_pelican.rst diff --git a/content/blog/2022/10/2022-10-17_comparing-go-gorm-and-sqlx.rst b/content/blog/2022-10-17_comparing-go-gorm-and-sqlx.rst similarity index 72% rename from content/blog/2022/10/2022-10-17_comparing-go-gorm-and-sqlx.rst rename to content/blog/2022-10-17_comparing-go-gorm-and-sqlx.rst index 1f9a4f4..70b1e1a 100644 --- a/content/blog/2022/10/2022-10-17_comparing-go-gorm-and-sqlx.rst +++ b/content/blog/2022-10-17_comparing-go-gorm-and-sqlx.rst @@ -1,11 +1,9 @@ Comparing Go GORM and SQLX ########################## -:date: 2022-10-17 13:17 :author: tyrel :category: Tech :tags: go, sql, python -:slug: comparing-go-gorm-and-sqlx -:status: draft +:status: published Django ORM - My History ~~~~~~~~~~~~~~~~~~~~~~~ @@ -41,4 +39,10 @@ My Go history is building a CLI tool for the two last years of my `previous job. I had never directly interacted with a database from Go yet. I wanted to spin up a REST API (I chose Go+Gin for that based on forty five seconds of Googling) and talk to a database. +GORM +~~~~ + +Being that I come from the Django (and a few years of ActiveRecord) land, I reached immediately for an ORM, I chose GORM. +If you want to skip directly to the source, check out `https://gitea.tyrel.dev/tyrel/go-webservice-gin `_. +Full design disclosure: I followed a couple of blog posts in order to develop this, so it is in the form explictly decided upon by the `logrocket blog post `_ and may not be the most efficient way to organize the module.