Exemple #1
0
func newTypeWriterReal(db *sql.DB) *typeWriter {
	tw := &typeWriter{
		Write: csdb.NewResurrectStmt(db, "REPLACE INTO `core_config_data` (`path`,`value`) VALUES (?,?)"),
	}
	tw.Write.Idle = time.Millisecond * 50
	return tw
}
Exemple #2
0
func newTypeWriterMocked(db *sql.DB) *typeWriter {
	tw := &typeWriter{
		Write: csdb.NewResurrectStmt(db, "INSERT INTO `xtable` (`path`,`value`) VALUES (?,?)"),
	}
	tw.Write.Idle = time.Millisecond * 50
	return tw
}