Instance Constructors
-
new
MySqlStore(client: Client, table: String, kCol: String, vCol: String)
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
val
COMMIT_TXN_SQL: String
-
val
DELETE_SQL: String
-
val
INSERT_SQL: String
-
val
MULTI_DELETE_SQL_PREFIX: String
-
val
MULTI_INSERT_SQL_PREFIX: String
-
val
MULTI_SELECT_SQL_PREFIX: String
-
val
MULTI_UPDATE_SQL_INFIX: String
-
val
MULTI_UPDATE_SQL_PREFIX: String
-
val
ROLLBACK_TXN_SQL: String
-
val
SELECT_SQL: String
-
val
START_TXN_SQL: String
-
val
UPDATE_SQL: String
-
final
def
asInstanceOf[T0]: T0
-
val
client: Client
-
def
clone(): AnyRef
-
def
close(t: Time): Future[Unit]
-
def
close(after: Duration): Future[Unit]
-
final
def
close(): Future[Unit]
-
def
commitTransaction: Future[Unit]
-
val
deleteStmt: PreparedStatement
-
def
doDelete(k: MySqlValue): Future[Result]
-
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
executeMultiInsert[K1 <: MySqlValue](kvs: Map[K1, MySqlValue]): Future[Future[Result]]
-
def
executeMultiUpdate[K1 <: MySqlValue](kvs: Map[K1, MySqlValue]): Future[Future[Result]]
-
def
finalize(): Unit
-
def
g(s: String): String
-
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
val
insertStmt: PreparedStatement
-
final
def
isInstanceOf[T0]: Boolean
-
def
multiGet[K1 <: MySqlValue](ks: Set[K1]): Map[K1, Future[Option[MySqlValue]]]
-
def
multiPut[K1 <: MySqlValue](kvs: Map[K1, Option[MySqlValue]]): Map[K1, Future[Unit]]
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
-
def
rollbackTransaction: Future[Unit]
-
val
selectStmt: PreparedStatement
-
-
def
startTransaction: Future[Unit]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
val
updateStmt: PreparedStatement
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from Closable
Inherited from AnyRef
Inherited from Any
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: