How to use the GEOGRAPHY function from sequelize

Find comprehensive JavaScript sequelize.GEOGRAPHY code examples handpicked from public code repositorys.

55
56
57
58
59
60
61
62
63
64
exports._JSON      = Sequelize.JSON;
exports._JSONB     = Sequelize.JSONB;
exports._ARRAY     = Sequelize.ARRAY;
exports._RANGE     = Sequelize.RANGE;
exports._GEOMETRY  = Sequelize.GEOMETRY;
exports._GEOGRAPHY = Sequelize.GEOGRAPHY;
exports._VIRTUAL   = Sequelize.VIRTUAL;
exports._ENUM      = function (arr) {
  return Sequelize.ENUM.apply(this, arr);
};
fork icon10
star icon15
watch icon25

+ 9 other calls in file

15
16
17
18
19
20
21
22
23
          return `ST_GeomFromText(${options.bindParam(wkx.Geometry.parseGeoJSON(value).toWkt())})`;
        }
        Sequelize.GEOGRAPHY.prototype._stringify = function _stringify(value, options) {
          return `ST_GeomFromText(${options.escape(wkx.Geometry.parseGeoJSON(value).toWkt())})`;
        }
        Sequelize.GEOGRAPHY.prototype._bindParam = function _bindParam(value, options) {
          return `ST_GeomFromText(${options.bindParam(wkx.Geometry.parseGeoJSON(value).toWkt())})`;
        }
}
fork icon9
star icon0
watch icon1

+ 3 other calls in file