如何在akka-persistence中查询旧快照?
我可以看到SnapshotStore有一条LoadSnapshot消息,该消息可以私下使用,但不能以其他方式调用。
snapshotter -> loadSnapshot中有一个接口
但是这给了参与者一个回调,这不是我需要的。
/**
* Instructs the snapshot store to load the specified snapshot and send it via an [[SnapshotOffer]]
* to the running [[PersistentActor]].
*/
我有三张桌子:
卡(号码,Credit_Line,余额)
使用(卡顿,特伦)
交易(数量、数量)
我想做个扳机来检查
TRANSACTION.Amount+CARD.Balance is not greater than CARD.Credit_Line
每次我插入一个新的事务。
我已经尝试执行以下操作,从Server中可以接受触发器,但是当我插入一个新事务时,它似乎无法工作。
这是我的代码:
CREATE TRIGGER check_b
ON TRANSACTION
AFTER INSERT
AS
BEGIN
SET NOCOUNT ON;
DECLA