Skip to content

Commit

Permalink
Update TIL listing
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jul 20, 2023
1 parent e0c563f commit bc7d1b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

This is a collection of short notes of the things I have learned on a daily basis while working on different technologies. I share these notes as I [learn in public](https://www.learninpublic.org/).

_**99** TILs and counting..._
_**100** TILs and counting..._

- 2023-07-20: [Git: push --force-with-lease](https://github.com/petermekhaeil/til/blob/master/./learnings/git-push-force-with-lease.md)
- 2023-06-16: [ Automatically handle `updated_at` column](https://github.com/petermekhaeil/til/blob/master/./learnings/postgresql-moddatetime.md)
- 2023-06-05: [How to Stop All Docker Containers](https://github.com/petermekhaeil/til/blob/master/./learnings/docker-stop-all.md)
- 2023-05-04: [JavaScript: Tagged Template Literals](https://github.com/petermekhaeil/til/blob/master/./learnings/js-tagged-templates.md)
Expand Down
6 changes: 6 additions & 0 deletions feed.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
[
{
"content": "# Git: push --force-with-lease",
"date": "2023-07-20",
"path": "git-push-force-with-lease.md",
"title": "Git: push --force-with-lease"
},
{
"content": " # Automatically handle `updated_at` column\n\n> **[moddatetime()](https://www.postgresql.org/docs/current/static/contrib-spi.html)** is a trigger that stores the current time into a timestamp field. This can be useful for tracking the last modification time of a particular row within a table.\n>\n> To use, create a BEFORE UPDATE trigger using this function. Specify a single trigger argument: the name of the column to be modified. The column must be of type timestamp or timestamp with time zone.\n\n ```sql\ncreate extension if not exists moddatetime schema extensions;\n\n-- assuming the table name is \"todos\", and a timestamp column \"updated_at\"\n-- this trigger will set the \"updated_at\" column to the current timestamp for every update\ncreate trigger handle_updated_at before update on todos\n for each row execute procedure moddatetime (updated_at);\n```",
"date": "2023-06-16",
Expand Down

0 comments on commit bc7d1b5

Please sign in to comment.