Saving snapshots
This commit is contained in:
6
Shogi.Database/Session/Stored Procedures/CreateState.sql
Normal file
6
Shogi.Database/Session/Stored Procedures/CreateState.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
CREATE PROCEDURE [session].[CreateState]
|
||||
@SessionId [session].[SessionSurrogateKey],
|
||||
@Document NVARCHAR(MAX)
|
||||
AS
|
||||
|
||||
INSERT INTO [session].[State] (SessionId, Document) VALUES (@SessionId, @Document);
|
||||
@@ -0,0 +1,7 @@
|
||||
CREATE PROCEDURE [session].[ReadStatesBySession]
|
||||
@SessionId [session].[SessionSurrogateKey]
|
||||
AS
|
||||
|
||||
SELECT Id, SessionId, Document
|
||||
FROM [session].[State]
|
||||
WHERE Id = @SessionId;
|
||||
Reference in New Issue
Block a user