import { LIST } from '../../sql/tax.js'; export default function list(pool) { /** * Lists all tax rates. * * @returns {Promise>} All tax rate rows. * * @example * const taxes = await store.tax.list(); * // => [{ id: 1, rate: 19 }] */ return async () => { const result = await pool.request().query(LIST); return result.recordset; }; }