Documentation ¶
Index ¶
Constants ¶
View Source
const ( CREATE_TRANSACTION = "INSERT INTO transacoes(cliente_id, valor, descricao) values ($1, $2, $3)" UPDATE_SALDO = "UPDATE clientes set saldo = saldo + $2 where id = $1" GET_SALDO = "SELECT limite, saldo from clientes where id = $1" GET_EXTRATO = "SELECT cliente_id, valor, descricao, data from transacoes where cliente_id = $1 order by data desc limit 10" GET_LOCK = "SELECT pg_advisory_xact_lock($1)" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (Storage) CreateTransacao ¶
Click to show internal directories.
Click to hide internal directories.