How to use the rethinkdb function in rethinkdb

To help you get started, we’ve selected a few rethinkdb 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 mikemintz / rethinkdb-websocket-server / src / ReqlTermExamples.js View on Github external
INDEX_CREATE: r([]).indexCreate(''),
  INDEX_DROP: r([]).indexDrop(''),
  INDEX_LIST: r([]).indexList(),
  INDEX_STATUS: r([]).indexStatus(),
  INDEX_WAIT: r([]).indexWait(),
  INDEX_RENAME: r([]).indexRename('', ''),
  FUNCALL: r.do(() => 0),
  BRANCH: r.branch(0, 0, 0),
  OR: r(0).or(0),
  AND: r(0).and(0),
  FOR_EACH: r([]).forEach(() => 0),
  FUNC: r(() => 0),
  ASC: r.asc(),
  DESC: r.desc(),
  INFO: r.info(),
  MATCH: r('').match(''),
  UPCASE: r('').upcase(),
  DOWNCASE: r('').downcase(),
  SAMPLE: r([]).sample(0),
  DEFAULT: r({}).default(0),
  JSON: r.json(''),
  TO_JSON_STRING: r('').toJsonString(),
  ISO8601: r.ISO8601(''),
  TO_ISO8601: r.now().toISO8601(),
  EPOCH_TIME: r.epochTime(0),
  TO_EPOCH_TIME: r.now().toEpochTime(),
  NOW: r.now(),
  IN_TIMEZONE: r.now().inTimezone(''),
  DURING: r('').during(r.now(), r.now()),
  DATE: r.now().date(),
  TIME_OF_DAY: r.now().timeOfDay(),
  TIMEZONE: r.now().timezone(),
github mikemintz / rethinkdb-websocket-server / src / ReqlTermExamples.js View on Github external
NOVEMBER: r.november,
  DECEMBER: r.december,
  LITERAL: r.literal({}),
  GROUP: r([]).group(''),
  SUM: r([]).sum(),
  AVG: r([]).avg(),
  MIN: r([]).min(),
  MAX: r([]).max(),
  SPLIT: r([]).split(),
  UNGROUP: r([]).ungroup(),
  RANDOM: r.random(),
  CHANGES: r([]).changes(),
  ARGS: r.args([]),
  BINARY: r.binary(new Buffer(0)),
  GEOJSON: r.geojson({}),
  TO_GEOJSON: r({}).toGeojson(),
  POINT: r.point(0, 0),
  LINE: r.line([], []),
  POLYGON: r.polygon([], [], []),
  DISTANCE: r.distance([], []),
  INTERSECTS: r.intersects(),
  INCLUDES: r([]).includes([]),
  CIRCLE: r.circle([], 0),
  GET_INTERSECTING: r([]).getIntersecting([]),
  FILL: r.line([], []).fill(),
  GET_NEAREST: r([]).getNearest([]),
  POLYGON_SUB: r.polygon([], [], []).polygonSub([]),
  MINVAL: r.minval,
  MAXVAL: r.maxval,
};
github mikemintz / rethinkdb-websocket-server / src / ReqlTermExamples.js View on Github external
SPLIT: r([]).split(),
  UNGROUP: r([]).ungroup(),
  RANDOM: r.random(),
  CHANGES: r([]).changes(),
  ARGS: r.args([]),
  BINARY: r.binary(new Buffer(0)),
  GEOJSON: r.geojson({}),
  TO_GEOJSON: r({}).toGeojson(),
  POINT: r.point(0, 0),
  LINE: r.line([], []),
  POLYGON: r.polygon([], [], []),
  DISTANCE: r.distance([], []),
  INTERSECTS: r.intersects(),
  INCLUDES: r([]).includes([]),
  CIRCLE: r.circle([], 0),
  GET_INTERSECTING: r([]).getIntersecting([]),
  FILL: r.line([], []).fill(),
  GET_NEAREST: r([]).getNearest([]),
  POLYGON_SUB: r.polygon([], [], []).polygonSub([]),
  MINVAL: r.minval,
  MAXVAL: r.maxval,
};
github mikemintz / rethinkdb-websocket-server / src / ReqlTermExamples.js View on Github external
COUNT: r([]).count(),
  IS_EMPTY: r([]).isEmpty(),
  UNION: r([]).union(),
  NTH: r([]).nth(),
  BRACKET: r([]).bracket(0),
  INNER_JOIN: r([]).innerJoin(),
  OUTER_JOIN: r([]).outerJoin(),
  EQ_JOIN: r([]).eqJoin('', ''),
  ZIP: r([]).zip(),
  RANGE: r.range(),
  INSERT_AT: r([]).insertAt(),
  DELETE_AT: r([]).deleteAt(),
  CHANGE_AT: r([]).changeAt(),
  SPLICE_AT: r([]).spliceAt(),
  COERCE_TO: r([]).coerceTo(),
  TYPE_OF: r([]).typeOf(),
  UPDATE: r([]).update({}),
  DELETE: r([]).delete(),
  REPLACE: r([]).replace({}),
  INSERT: r([]).insert({}),
  DB_CREATE: r.dbCreate(),
  DB_DROP: r.dbDrop(),
  DB_LIST: r.dbList(),
  TABLE_CREATE: r.tableCreate(''),
  TABLE_DROP: r.tableDrop(''),
  TABLE_LIST: r.tableList(),
  CONFIG: r([]).config(),
  STATUS: r([]).status(),
  WAIT: r.db('').wait(),
  RECONFIGURE: r.db('').reconfigure(),
  REBALANCE: r.db('').rebalance(),
  SYNC: r([]).sync(),
github mikemintz / rethinkdb-websocket-server / src / ReqlTermExamples.js View on Github external
UNION: r([]).union(),
  NTH: r([]).nth(),
  BRACKET: r([]).bracket(0),
  INNER_JOIN: r([]).innerJoin(),
  OUTER_JOIN: r([]).outerJoin(),
  EQ_JOIN: r([]).eqJoin('', ''),
  ZIP: r([]).zip(),
  RANGE: r.range(),
  INSERT_AT: r([]).insertAt(),
  DELETE_AT: r([]).deleteAt(),
  CHANGE_AT: r([]).changeAt(),
  SPLICE_AT: r([]).spliceAt(),
  COERCE_TO: r([]).coerceTo(),
  TYPE_OF: r([]).typeOf(),
  UPDATE: r([]).update({}),
  DELETE: r([]).delete(),
  REPLACE: r([]).replace({}),
  INSERT: r([]).insert({}),
  DB_CREATE: r.dbCreate(),
  DB_DROP: r.dbDrop(),
  DB_LIST: r.dbList(),
  TABLE_CREATE: r.tableCreate(''),
  TABLE_DROP: r.tableDrop(''),
  TABLE_LIST: r.tableList(),
  CONFIG: r([]).config(),
  STATUS: r([]).status(),
  WAIT: r.db('').wait(),
  RECONFIGURE: r.db('').reconfigure(),
  REBALANCE: r.db('').rebalance(),
  SYNC: r([]).sync(),
  INDEX_CREATE: r([]).indexCreate(''),
  INDEX_DROP: r([]).indexDrop(''),
github mikemintz / rethinkdb-websocket-server / src / ReqlTermExamples.js View on Github external
INDEX_DROP: r([]).indexDrop(''),
  INDEX_LIST: r([]).indexList(),
  INDEX_STATUS: r([]).indexStatus(),
  INDEX_WAIT: r([]).indexWait(),
  INDEX_RENAME: r([]).indexRename('', ''),
  FUNCALL: r.do(() => 0),
  BRANCH: r.branch(0, 0, 0),
  OR: r(0).or(0),
  AND: r(0).and(0),
  FOR_EACH: r([]).forEach(() => 0),
  FUNC: r(() => 0),
  ASC: r.asc(),
  DESC: r.desc(),
  INFO: r.info(),
  MATCH: r('').match(''),
  UPCASE: r('').upcase(),
  DOWNCASE: r('').downcase(),
  SAMPLE: r([]).sample(0),
  DEFAULT: r({}).default(0),
  JSON: r.json(''),
  TO_JSON_STRING: r('').toJsonString(),
  ISO8601: r.ISO8601(''),
  TO_ISO8601: r.now().toISO8601(),
  EPOCH_TIME: r.epochTime(0),
  TO_EPOCH_TIME: r.now().toEpochTime(),
  NOW: r.now(),
  IN_TIMEZONE: r.now().inTimezone(''),
  DURING: r('').during(r.now(), r.now()),
  DATE: r.now().date(),
  TIME_OF_DAY: r.now().timeOfDay(),
  TIMEZONE: r.now().timezone(),
  YEAR: r.now().year(),
github mikemintz / rethinkdb-websocket-server / src / ReqlTermExamples.js View on Github external
EQ: r.eq(),
  NE: r.ne(),
  LT: r.lt(),
  LE: r.le(),
  GT: r.gt(),
  GE: r.ge(),
  NOT: r.not(),
  ADD: r.add(),
  SUB: r.sub(),
  MUL: r.mul(),
  DIV: r.div(),
  MOD: r.mod(),
  FLOOR: r.floor(),
  CEIL: r.ceil(),
  ROUND: r.round(),
  APPEND: r([]).append(),
  PREPEND: r([]).prepend(),
  DIFFERENCE: r([]).difference(),
  SET_INSERT: r([]).setInsert(),
  SET_INTERSECTION: r([]).setIntersection(),
  SET_UNION: r([]).setUnion(),
  SET_DIFFERENCE: r([]).setDifference(),
  SLICE: r([]).slice(0),
  SKIP: r([]).skip(),
  LIMIT: r([]).limit(),
  OFFSETS_OF: r([]).offsetsOf(),
  CONTAINS: r([]).contains(),
  GET_FIELD: r({}).getField(),
  KEYS: r({}).keys(),
  OBJECT: r.object(),
  HAS_FIELDS: r([]).hasFields(),
  WITH_FIELDS: r([]).withFields(),
github mikemintz / rethinkdb-websocket-server / src / ReqlTermExamples.js View on Github external
CONFIG: r([]).config(),
  STATUS: r([]).status(),
  WAIT: r.db('').wait(),
  RECONFIGURE: r.db('').reconfigure(),
  REBALANCE: r.db('').rebalance(),
  SYNC: r([]).sync(),
  INDEX_CREATE: r([]).indexCreate(''),
  INDEX_DROP: r([]).indexDrop(''),
  INDEX_LIST: r([]).indexList(),
  INDEX_STATUS: r([]).indexStatus(),
  INDEX_WAIT: r([]).indexWait(),
  INDEX_RENAME: r([]).indexRename('', ''),
  FUNCALL: r.do(() => 0),
  BRANCH: r.branch(0, 0, 0),
  OR: r(0).or(0),
  AND: r(0).and(0),
  FOR_EACH: r([]).forEach(() => 0),
  FUNC: r(() => 0),
  ASC: r.asc(),
  DESC: r.desc(),
  INFO: r.info(),
  MATCH: r('').match(''),
  UPCASE: r('').upcase(),
  DOWNCASE: r('').downcase(),
  SAMPLE: r([]).sample(0),
  DEFAULT: r({}).default(0),
  JSON: r.json(''),
  TO_JSON_STRING: r('').toJsonString(),
  ISO8601: r.ISO8601(''),
  TO_ISO8601: r.now().toISO8601(),
  EPOCH_TIME: r.epochTime(0),
  TO_EPOCH_TIME: r.now().toEpochTime(),
github mikemintz / rethinkdb-websocket-server / src / ReqlTermExamples.js View on Github external
ADD: r.add(),
  SUB: r.sub(),
  MUL: r.mul(),
  DIV: r.div(),
  MOD: r.mod(),
  FLOOR: r.floor(),
  CEIL: r.ceil(),
  ROUND: r.round(),
  APPEND: r([]).append(),
  PREPEND: r([]).prepend(),
  DIFFERENCE: r([]).difference(),
  SET_INSERT: r([]).setInsert(),
  SET_INTERSECTION: r([]).setIntersection(),
  SET_UNION: r([]).setUnion(),
  SET_DIFFERENCE: r([]).setDifference(),
  SLICE: r([]).slice(0),
  SKIP: r([]).skip(),
  LIMIT: r([]).limit(),
  OFFSETS_OF: r([]).offsetsOf(),
  CONTAINS: r([]).contains(),
  GET_FIELD: r({}).getField(),
  KEYS: r({}).keys(),
  OBJECT: r.object(),
  HAS_FIELDS: r([]).hasFields(),
  WITH_FIELDS: r([]).withFields(),
  PLUCK: r([]).pluck(''),
  WITHOUT: r([]).without(),
  MERGE: r({}).merge(),
  BETWEEN: r([]).between(0, 1),
  REDUCE: r([]).reduce(),
  MAP: r([]).map({}),
  FILTER: r([]).filter({}),
github mikemintz / rethinkdb-websocket-server / src / ReqlTermExamples.js View on Github external
WITH_FIELDS: r([]).withFields(),
  PLUCK: r([]).pluck(''),
  WITHOUT: r([]).without(),
  MERGE: r({}).merge(),
  BETWEEN: r([]).between(0, 1),
  REDUCE: r([]).reduce(),
  MAP: r([]).map({}),
  FILTER: r([]).filter({}),
  CONCAT_MAP: r([]).concatMap({}),
  ORDER_BY: r([]).orderBy(),
  DISTINCT: r([]).distinct(),
  COUNT: r([]).count(),
  IS_EMPTY: r([]).isEmpty(),
  UNION: r([]).union(),
  NTH: r([]).nth(),
  BRACKET: r([]).bracket(0),
  INNER_JOIN: r([]).innerJoin(),
  OUTER_JOIN: r([]).outerJoin(),
  EQ_JOIN: r([]).eqJoin('', ''),
  ZIP: r([]).zip(),
  RANGE: r.range(),
  INSERT_AT: r([]).insertAt(),
  DELETE_AT: r([]).deleteAt(),
  CHANGE_AT: r([]).changeAt(),
  SPLICE_AT: r([]).spliceAt(),
  COERCE_TO: r([]).coerceTo(),
  TYPE_OF: r([]).typeOf(),
  UPDATE: r([]).update({}),
  DELETE: r([]).delete(),
  REPLACE: r([]).replace({}),
  INSERT: r([]).insert({}),
  DB_CREATE: r.dbCreate(),

rethinkdb

This package provides the JavaScript driver library for the RethinkDB database server for use in your node application.

Unknown
Latest version published 5 years ago

Package Health Score

58 / 100
Full package analysis