aboutsummaryrefslogtreecommitdiff
path: root/dump.scm
diff options
context:
space:
mode:
Diffstat (limited to 'dump.scm')
-rwxr-xr-xdump.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/dump.scm b/dump.scm
index 9650de5..01376b2 100755
--- a/dump.scm
+++ b/dump.scm
@@ -89,6 +89,15 @@
;;; Dump tables
+(define (annotate-field field schema)
+ (let ([schema (cond ((symbol? schema)
+ (symbol->string schema))
+ ((string? schema) schema)
+ (else
+ (error "Use a string/symbol")))])
+ (string->symbol
+ (format #f "~s~a" field schema))))
+
(define (delete-substrings str . substrings)
"Delete SUBSTRINGS, a list of strings, from STR."
(fold (lambda (substring result)