feat(tfstated): implement states locking

This commit is contained in:
Julien Dessaux 2024-10-03 00:13:09 +02:00
parent 8949cee8b3
commit 3d74311931
Signed by: adyxax
GPG key ID: F92E51B86E07177E
7 changed files with 174 additions and 13 deletions

View file

@ -5,6 +5,7 @@ CREATE TABLE schema_version (
CREATE TABLE states (
id INTEGER PRIMARY KEY,
name TEXT NOT NULL,
data BLOB NOT NULL
data BLOB NOT NULL,
lock TEXT
) STRICT;
CREATE UNIQUE INDEX states_name on states(name);