Mercurial Hosting > chat
comparison src/lib/Db.luan @ 71:2206c20e91d2
add Db.restore_from_log
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Thu, 06 Mar 2025 20:43:54 -0700 |
| parents | 7b6691bd65c3 |
| children |
comparison
equal
deleted
inserted
replaced
| 70:effa1e0af52a | 71:2206c20e91d2 |
|---|---|
| 37 | 37 |
| 38 function Db.not_in_transaction() | 38 function Db.not_in_transaction() |
| 39 logger.error(new_error("not in transaction")) | 39 logger.error(new_error("not in transaction")) |
| 40 end | 40 end |
| 41 | 41 |
| 42 Db.restore_from_log() | |
| 43 | |
| 42 -- copied from Chat | 44 -- copied from Chat |
| 43 local function get_chat_key(user_ids) | 45 local function get_chat_key(user_ids) |
| 44 sort(user_ids) | 46 sort(user_ids) |
| 45 return concat(user_ids,"~") | 47 return concat(user_ids,"~") |
| 46 end | 48 end |
