How to use the comb.isBoolean function in comb

To help you get started, we’ve selected a few comb examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github C2FO / patio / lib / associations / oneToMany.js View on Github external
var comb = require("comb"),
    isArray = comb.isArray,
    isUndefinedOrNull = comb.isUndefinedOrNull,
    isBoolean = comb.isBoolean,
    define = comb.define,
    Promise = comb.Promise,
    isNull = comb.isNull,
    when = comb.when,
    isInstanceOf = comb.isInstanceOf,
    PromiseList = comb.PromiseList,
    isUndefined = comb.isUndefined,
    singularize = comb.singularize,
    _Association = require("./_Association");

/**
 * @class Class to define a one to many association.
 *
 * <br>
 * <b>NOT to be instantiated directly</b>
 * Its just documented for reference.
github C2FO / patio / lib / model.js View on Github external
var comb = require("comb"),
    asyncArray = comb.async.array,
    isFunction = comb.isFunction,
    isUndefined = comb.isUndefined,
    isDefined = comb.isDefined,
    isBoolean = comb.isBoolean,
    isString = comb.isString,
    argsToArray = comb.argsToArray,
    isInstanceOf = comb.isInstanceOf,
    isHash = comb.isHash,
    when = comb.when,
    merge = comb.merge,
    toArray = comb.array.toArray,
    ModelError = require("./errors").ModelError,
    plugins = require("./plugins"),
    isUndefinedOrNull = comb.isUndefinedOrNull,
    AssociationPlugin = plugins.AssociationPlugin,
    QueryPlugin = plugins.QueryPlugin,
    Promise = comb.Promise,
    PromiseList = comb.PromiseList,
    HashTable = comb.collections.HashTable,
    hitch = comb.hitch,
github C2FO / patio / lib / database / query.js View on Github external
var comb = require("comb"),
    define = comb.define,
    merge = comb.merge,
    hitch = comb.hitch,
    when = comb.when,
    isBoolean = comb.isBoolean,
    isEmpty = comb.isEmpty,
    isArray = comb.isArray,
    isUndefined = comb.isUndefined,
    isPromiseLike = comb.isPromiseLike,
    isUndefinedOrNull = comb.isUndefinedOrNull,
    argsToArray = comb.argsToArray,
    isFunction = comb.isFunction,
    format = comb.string.format,
    Promise = comb.Promise,
    isNull = comb.isNull,
    Queue = comb.collections.Queue,
    sql = require("../sql").sql,
    PromiseList = comb.PromiseList,
    errors = require("../errors"),
    NotImplemented = errors.NotImplemented,
    stream = require("stream"),
github C2FO / patio / lib / plugins / query.js View on Github external
var comb = require("comb"),
    asyncArray = comb.async.array,
    when = comb.when,
    isBoolean = comb.isBoolean,
    isArray = comb.isArray,
    isHash = comb.isHash,
    isUndefined = comb.isUndefined,
    isInstanceOf = comb.isInstanceOf,
    isEmpty = comb.isEmpty,
    Dataset = require("../dataset"),
    ModelError = require("../errors").ModelError,
    Promise = comb.Promise,
    PromiseList = comb.PromiseList;


var QueryPlugin = comb.define(null, {
    instance: {
        /**@lends patio.Model.prototype*/

        _getPrimaryKeyQuery: function () {
github C2FO / patio / lib / associations / _Association.js View on Github external
var comb = require("comb"),
    define = comb.define,
    isUndefined = comb.isUndefined,
    isUndefinedOrNull = comb.isUndefinedOrNull,
    isBoolean = comb.isBoolean,
    isString = comb.isString,
    isHash = comb.isHash,
    when = comb.when,
    isFunction = comb.isFunction,
    isInstanceOf = comb.isInstanceOf,
    Promise = comb.Promise,
    PromiseList = comb.PromiseList,
    array = comb.array,
    toArray = array.toArray,
    isArray = comb.isArray,
    Middleware = comb.plugins.Middleware,
    PatioError = require("../errors").PatioError;

var fetch = {
    LAZY: "lazy",
    EAGER: "eager"
github C2FO / patio / lib / dataset / graph.js View on Github external
var comb = require("comb"),
    Promise = comb.Promise,
    string = comb.string,
    format = string.format,
    SQL = require("../sql"),
    sql = SQL.sql,
    isUndefinedOrNull = comb.isUndefinedOrNull,
    define = comb.define,
    merge = comb.merge,
    argsToArray = comb.argsToArray,
    isString = comb.isString,
    isHash = comb.isHash,
    isArray = comb.isArray,
    isObject = comb.isObject,
    isFunction = comb.isFunction,
    isBoolean = comb.isBoolean,
    isEmpty = comb.isEmpty,
    isInstanceOf = comb.isInstanceOf,
    toArray = comb.array.toArray,
    errors = require("../errors"),
    QueryError = errors.QueryError;

/*
 * This file contains dataset graphing related features. All methods return
 * a copy of the dataset.
 */


//leave for later initialization
var Dataset;
github C2FO / patio / lib / plugins / columnMapper.js View on Github external
var comb = require("comb"),
    toArray = comb.array.toArray,
    isInstanceOf = comb.isInstanceOf,
    isBoolean = comb.isBoolean,
    when = comb.when,
    isHash = comb.isHash,
    isString = comb.isString,
    sql = require("../sql.js").sql,
    AliasedExpression = sql.AliasedExpression,
    Identifier = sql.Identifier,
    isConditionSpecifier = sql.Expression.isConditionSpecifier,
    ModelError = require("../errors.js").ModelError;


/**
 * @class This plugin exposes the ability to map columns on other tables to this Model.
 *
 * See {@link patio.plugins.ColumnMapper.mappedColumn} for more information.
 *
 * @name ColumnMapper
github C2FO / patio / lib / associations / manyToMany.js View on Github external
var comb = require("comb"),
    define = comb.define,
    isUndefined = comb.isUndefined,
    isUndefinedOrNull = comb.isUndefinedOrNull,
    isFunction = comb.isFunction,
    isInstanceOf = comb.isInstanceOf,
    sql = require("../sql").sql,
    array = comb.array,
    isBoolean = comb.isBoolean,
    when = comb.when,
    zip = array.zip,
    Promise = comb.Promise,
    PromiseList = comb.PromiseList,
    OneToMany = require("./oneToMany"),
    pluralize = comb.pluralize,
    AssociationError = require("../errors").AssociationError;

var LOGGER = comb.logger("comb.associations.ManyToMany");
/**
 * @class Class to define a manyToMany association.
 *
 * <br>
 * <b>NOT to be instantiated directly</b>
 * Its just documented for reference.
 *
github C2FO / patio / lib / database / index.js View on Github external
var comb = require("comb"),
    format = comb.string.format,
    merge = comb.merge,
    hitch = comb.hitch,
    isNull = comb.isNull,
    define = comb.define,
    isBoolean = comb.isBoolean,
    isUndefined = comb.isUndefined,
    isFunction = comb.isFunction,
    isString = comb.isString,
    isObject = comb.isObject,
    isDate = comb.isDate,
    isArray = Array.isArray,
    isHash = comb.isHash,
    isNumber = comb.isNumber,
    isInstanceOf = comb.isInstanceOf,
    isEmpty = comb.isEmpty,
    sql = require("../sql").sql,
    DateTime = sql.DateTime,
    TimeStamp = sql.TimeStamp,
    Json = sql.Json,
    Year = sql.Year,
    Time = sql.Time,
github C2FO / patio / lib / adapters / postgres.js View on Github external
isHash = comb.isHash,
    argsToArray = comb.argsToArray,
    pad = string.pad,
    format = string.format,
    when = comb.when,
    array = comb.array,
    toArray = array.toArray,
    zip = array.zip,
    flatten = array.flatten,
    Promise = comb.Promise,
    isUndefinedOrNull = comb.isUndefinedOrNull,
    isUndefined = comb.isUndefined,
    isString = comb.isString,
    isArray = comb.isArray,
    isEmpty = comb.isEmpty,
    isBoolean = comb.isBoolean,
    isObject = comb.isObject,
    isFunction = comb.isFunction,
    define = comb.define,
    merge = comb.merge,
    isDefined = comb.isDefined,
    isInstanceOf = comb.isInstanceOf,
    QueryError = require("../errors").QueryError,
    Dataset = require("../dataset"),
    Database = require("../database"),
    sql = require("../sql").sql,
    stringToIdentifier = sql.stringToIdentifier,
    DateTime = sql.DateTime,
    Time = sql.Time,
    Year = sql.Year,
    literal = sql.literal,
    StringExpression = sql.StringExpression,