Changeset

10838:f26f2ec33f1e

doc/storage: Add archive store map-like API
author Kim Alvefur <zash@zash.se>
date Mon, 11 May 2020 22:32:28 +0200
parents 10837:f23363380599
children 10839:018acdaf374f
files doc/storage.tld
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/doc/storage.tld	Mon May 11 21:56:19 2020 +0200
+++ b/doc/storage.tld	Mon May 11 22:32:28 2020 +0200
@@ -50,6 +50,10 @@
 
 	-- Map of counts per "with" field
 	summary : ( self, string?, archive_query? ) -> ( { string : integer } ) | (nil, string)
+
+	-- Map-store API
+	get    : ( self, string, string ) -> (stanza, number?, string?) | (nil, string)
+	set    : ( self, string, string, stanza, number?, string? ) -> (boolean) | (nil, string)
 end
 
 -- This represents moduleapi