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); };
+ 9 other calls in file
GitHub: draadnl/openstad-api
![draadnl profile picture](/draadnl.png?size=40)
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())})`; } }
+ 3 other calls in file
sequelize.col is the most popular function in sequelize (1002 examples)