aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJhih-Ming Huang <jm.huang@cobinhood.com>2019-04-17 14:02:36 +0800
committerJhih-Ming Huang <jm.huang@cobinhood.com>2019-05-06 10:49:53 +0800
commit911b1c71694fdb871946f3e9b5df4b097f054cd6 (patch)
tree49e7b41da540c65063c9bbe55fb275f26008af93
parenta818119b28d65c48a5673754c6f034a5e67c201e (diff)
downloaddexon-911b1c71694fdb871946f3e9b5df4b097f054cd6.tar.gz
dexon-911b1c71694fdb871946f3e9b5df4b097f054cd6.tar.zst
dexon-911b1c71694fdb871946f3e9b5df4b097f054cd6.zip
fixup! core: vm: sqlvm: README.md
-rw-r--r--core/vm/sqlvm/README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/vm/sqlvm/README.md b/core/vm/sqlvm/README.md
index d118aff5f..640ea8826 100644
--- a/core/vm/sqlvm/README.md
+++ b/core/vm/sqlvm/README.md
@@ -813,7 +813,7 @@ Row steps:
1. Add new ID to pk
1. Update auto increment field if in need
1. Update default field if in need
-1. Check foreign key exists
+1. Check if foreign key exists
1. Increase target reference count
1. Check index
1. Create empty index if not existing
@@ -828,7 +828,7 @@ Row steps:
Row steps:
1. Get old data by ID
1. Iterate IDs
- 1. Check foreign key exists
+ 1. Check if foreign key exists
1. Increase target reference count
1. Decrease old target reference count
1. Update index
@@ -844,11 +844,11 @@ Row steps:
1. Get old data by IDs
1. Iterate IDs
1. Iterate indices
- 1. If index contains more than 1 keys, remove from list
- 1. If index contains only key
+ 1. If index contains more than one key, remove from list
+ 1. If index contains only one key
1. If reference count not zero, return error
1. Delete key and meta value
- 1. Check foreign key exists
+ 1. Check if foreign key exists
1. Decrease target reference count
1. Commit