Remove code api01-2.sql
article thumbnail

Database functions to wrap logic and SQL queries

Derek Sivers

For example, to move money from one account to another, you have to insert a negative amount into account #1, and a positive amount into account #2. Usually you do in your main code: your JavaScript, Python, Ruby, or whatever. But what if some future code bypasses your crucial “business logic” functions?

40