Mergeable MySQL store that performs merge inside a transaction.
MySQL store for Long values
Simple storehaus wrapper over finagle-mysql.
Wraps finagle-mysql Value ADT.
Wraps finagle-mysql Value ADT.
Since finagle maps MySQL column types to specific Value types, we use this type class as an abstraction. MySqlValue objects can then be converted to string, channelbuffer or any other type without having to worry about the underlying finagle type.
Factory for com.twitter.storehaus.mysql.MySqlLongStore instances.
Factory for com.twitter.storehaus.mysql.MySqlStore instances.
Factory for com.twitter.storehaus.mysql.MySqlValue instances.
Helper class for mapping finagle-mysql Values to types we care about.
Injection from MySqlValue to ChannelBuffer.
Injection from MySqlValue to ChannelBuffer. Returns a channel buffer containing the Value wrapped by MySqlValue. Both null values and empty values map to empty channel buffer.
(Since version 0.10.0) Use ChannelBuffer2MySqlValueInjection
Injection from MySqlValue to String.
Injection from MySqlValue to String. Returns string representation of the finagle-mysql Value wrapped by MySqlValue Both null values and empty values map to empty string.
(Since version 0.10.0) Use String2MySqlValueInjection
Simple storehaus wrapper over finagle-mysql.
Assumes the underlying table's key and value columns are both strings. Supported MySQL column types are: BLOB, TEXT, VARCHAR.
The finagle-mysql client is required to set the user, database and create the underlying table schema prior to this class being used.
Storehaus-mysql also works with pre-populated MySQL tables, based on the assumption that the key column picked is unique. Any table columns other than the picked key and value columns are ignored during reads and writes.
Example usage: