Welcome to the CHICKEN Scheme pasting service

Descriptive DB structure added by arthurmaciel on Sun Feb 5 22:12:24 2017

(define (alpha? str)
  (irregex-match '(* alpha) str))

(define (num? str)
  (irregex-match '(* num) str))

(define (alphanum? str)
  (irregex-match '(* alphanum) str))

(define ((max-length len) str)
  (>= len (string-length str)))

(define workers-table
`((name "workers_data")
  (alias "workers")
  (fields (id (type integer)
              (primary-key))
          (name (type text)
                (validators alpha?
                            (max-length 30)))
          (profession (type text)
                      (validators (max-length 50)))))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Proper ... recursion is required by the Scheme specification.
Visually impaired? Let me spell it for you (wav file) download WAV