Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveUnsentOrdersWithInvalidLimit ¶
func RemoveUnsentOrdersWithInvalidLimit(ctx context.Context, conn *sqlite3.Conn) (numDeleted uint64, _ error)
RemoveUnsentOrdersWithInvalidLimit removes all the invalid unsent orders which have an invalid order limit and it returns the number of deleted orders.
An invalid order limit is one that cannot be deserialized.
It panics if ctx or conn is nil.
TODO: report the number of deleted orders by validation error type.
TODO: have a force flag which cause to always delete any order which validation has failed despite that it could be caused by the unmarshaller mechanism.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.