sqlite-browser
Version:
Query and page SQLite3 DBs from the command line
78 lines (57 loc) • 2.69 kB
JavaScript
// Generated by CoffeeScript 2.4.1
(function() {
'use strict';
var CND, Intertype, alert, badge, debug, help, info, intertype, jr, rpr, urge, warn, whisper;
//###########################################################################################################
CND = require('cnd');
rpr = CND.rpr;
badge = 'SQLITE-BROWSER/TYPES';
debug = CND.get_logger('debug', badge);
alert = CND.get_logger('alert', badge);
whisper = CND.get_logger('whisper', badge);
warn = CND.get_logger('warn', badge);
help = CND.get_logger('help', badge);
urge = CND.get_logger('urge', badge);
info = CND.get_logger('info', badge);
jr = JSON.stringify;
Intertype = (require('intertype')).Intertype;
intertype = new Intertype(module.exports);
// #-----------------------------------------------------------------------------------------------------------
// @declare 'pd_datom_sigil',
// tests:
// "x is a chr": ( x ) -> @isa.chr x
// "x has sigil": ( x ) -> x in '^<>~[]'
//-----------------------------------------------------------------------------------------------------------
this.declare('sqlb_settings', {
tests: {
"x is a object": function(x) {
return this.isa.object(x);
}
}
});
// "x has key 'key'": ( x ) -> @has_key x, 'key'
// "x.key is a pd_datom_key": ( x ) -> @isa.pd_datom_key x.key
// "x.$stamped is an optional boolean": ( x ) -> ( not x.$stamped? ) or ( @isa.boolean x.$stamped )
// "x.$dirty is an optional boolean": ( x ) -> ( not x.$dirty? ) or ( @isa.boolean x.$dirty )
// "x.$fresh is an optional boolean": ( x ) -> ( not x.$fresh? ) or ( @isa.boolean x.$fresh )
// #.......................................................................................................
// "x.$vnr is an optional nonempty list of positive integers": ( x ) ->
// ( not x.$vnr? ) or @isa.pd_nonempty_list_of_positive_integers x.$vnr
//-----------------------------------------------------------------------------------------------------------
this.declare('sqlb_db_path', {
tests: {
"x is a nonempty_text": function(x) {
return this.isa.nonempty_text(x);
}
}
});
//-----------------------------------------------------------------------------------------------------------
this.declare('sqlb_key', {
tests: {
"x is a nonempty_text": function(x) {
return this.isa.nonempty_text(x);
}
}
});
}).call(this);
//# sourceMappingURL=types.js.map