@@ -99,10 +99,10 @@ select * from audit_log;
9999
100100id | timestamp | row_id | previous_values
101101---|---|---|---
102- 1|2024-02-27 01:34:50|1|` {"text_col":"Hello","int_col":42} `
103- 2|2024-02-27 01:34:50|1|` {"float_col":3.14} `
104- 3|2024-02-27 01:34:50|1|` {"blob_col":{"hex":"0102030405060708"}} `
105- 4|2024-02-27 01:34:50|1|` {"float_col":{"null":1}} `
102+ 1|2024-02-27 01:34:50|1|` {"text_col": "Hello", "int_col": 42} `
103+ 2|2024-02-27 01:34:50|1|` {"float_col": 3.14} `
104+ 3|2024-02-27 01:34:50|1|` {"blob_col": {"hex": "0102030405060708"}} `
105+ 4|2024-02-27 01:34:50|1|` {"float_col": {"null": 1}} `
106106
107107There's a lot of stuff going on here!
108108
@@ -255,11 +255,11 @@ The result is an `audit_log` table containing the following:
255255
256256id | timestamp | row_id | updated_values
257257---|---|---|---
258- 1|2024-02-27 01:51:44|1|` {"text_col":"Hello","int_col":42,"float_col":3.14,"blob_col":{"hex":"0102030405060708"}} `
259- 2|2024-02-27 01:51:54|1|` {"text_col":"World","int_col":37} `
260- 3|2024-02-27 01:51:54|1|` {"float_col":{"null":1}} `
261- 4|2024-02-27 01:51:54|1|` {"blob_col":{"hex":"0807060504030201"}} `
262- 5|2024-02-27 01:51:54|1|` {"float_col":2.71828} `
258+ 1|2024-02-27 01:51:44|1|` {"text_col": "Hello", "int_col": 42, "float_col": 3.14, "blob_col": {"hex": "0102030405060708"}} `
259+ 2|2024-02-27 01:51:54|1|` {"text_col": "World", "int_col": 37} `
260+ 3|2024-02-27 01:51:54|1|` {"float_col": {"null": 1}} `
261+ 4|2024-02-27 01:51:54|1|` {"blob_col": {"hex": "0807060504030201"}} `
262+ 5|2024-02-27 01:51:54|1|` {"float_col": 2.71828} `
263263
264264## Next step: automate it with Python
265265
0 commit comments