Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

g1t.sh
4 linesCodeBlameRaw
1INSERT INTO tax_and_fees (id, workspace, kind, amount_micros, reference, payment_intent, created_at)
2SELECT ?1, ?2, ?3, -(?4 - already), ?5, ?6, ?7
3FROM (SELECT -COALESCE(SUM(amount_micros), 0) AS already FROM tax_and_fees WHERE reference LIKE ?8 AND kind = ?3)
4WHERE ?4 > already