diff --git a/src/github.com/stellar/gateway/db/entities/sent_transaction.go b/src/github.com/stellar/gateway/db/entities/sent_transaction.go index 272fc7c..9dd52e6 100644 --- a/src/github.com/stellar/gateway/db/entities/sent_transaction.go +++ b/src/github.com/stellar/gateway/db/entities/sent_transaction.go @@ -1,12 +1,20 @@ package entities import ( + "database/sql/driver" "time" ) // SentTransactionStatus type represents sent transaction status type SentTransactionStatus string +// Value implements driver.Valuer +func (status SentTransactionStatus) Value() (driver.Value, error) { + return driver.Value(string(status)), nil +} + +var _ driver.Valuer = SentTransactionStatus("") + const ( // SentTransactionStatusSending is a status indicating that transaction is sending SentTransactionStatusSending SentTransactionStatus = "sending"