Trigger is an action that causes something to happen. SQL triggers does the same thing. Technically speaking a trigger is a stored procedure invoked in response to some event such as an insert, update or delete.

Firstly we will look at a very simple example to get an idea of what a trigger does.

Let's say we want to prevent users from entering cuss words as their usernames.

user_name varchar(255),
age int
DELIMITER $$CREATE TRIGGER prevent_bad_names
IF NEW.user_name …

What is Node js?

Before diving directly into what Node js is, we first need to discuss what V8 and libuv projects are.

V8 is the open source javascript engine developed by Google written in C++ which lets us run javascript code on our machine.

Libuv is a project also written in C++ which deals with operating system tasks like file systems, networking and which also deals with some aspects of concurrency.

How does node JS come in to the picture here?

Node js uses V8 and Libuv projects and creates some well refined modules like https, crypto, path and…

Lashan Faliq

Software engineer @SyscoLABS

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store