Package main of salaries provides an example of using a few of the high-level TwiceDB API methods to simulate managing payroll, salary changes, and backpay.