Enum FunctionType
- Namespace
- YndigoBlue.Velocity.Enums
- Assembly
- YndigoBlue.Velocity.dll
Specifies database functions supported by Velocity across different database systems.
public enum FunctionType
Fields
SpatialArea = 0ST_Area(g) - The area of g as a double. https://blogs.msdn.microsoft.com/davidlean/2008/10/16/sql-2008-spatial-samples-part-9-of-9-handy-but-obvious-methods/
SpatialBoundary = 1ST_Boundary(g) - Returns the boundary of g as a geometry. Boundary of a POLYGON is returned as LINESTRING Boundary of a LINESTRING is returned as a MULTIPOINT https://blogs.msdn.microsoft.com/davidlean/2008/10/25/sql-2008-spatial-samples-part-6-of-9-geometric-set-theory-methods/
SpatialBuffer = 2ST_Buffer(g, d) - a buffer around the geometry g of distance d as a geometry (POLYGON). https://blogs.msdn.microsoft.com/davidlean/2008/10/24/sql-2008-spatial-samples-part-7-of-9-stbuffer-spatial-starts-here/
SpatialCentroid = 3ST_Centroid(g) - The centroid of the geometry as a geometry (POINT). https://blogs.msdn.microsoft.com/davidlean/2008/10/25/sql-2008-spatial-samples-part-6-of-9-geometric-set-theory-methods/
SpatialConcaveHull = 4ST_ConcaveHull(g) - Returns the smallest bounding shape that completely encloses a geometry with a concave area https://blogs.msdn.microsoft.com/davidlean/2008/10/26/sql-2008-spatial-samples-part-5-of-9-performance-improvement-methods/
SpatialContains = 5ST_Contains(g1, g2) - Does g1 comlpetely contain g2 as a boolean. https://blogs.msdn.microsoft.com/davidlean/2008/10/24/sql-2008-spatial-samples-part-8-of-9-conditional-methods/
SpatialConvexHull = 6ST_ConvexHull(g) - Returns the smallest bounding shape that completely encloses a geometry without a concave area https://blogs.msdn.microsoft.com/davidlean/2008/10/26/sql-2008-spatial-samples-part-5-of-9-performance-improvement-methods/
SpatialCovers = 7SpatialCrosses = 8ST_Crosses(g1, g2) - Does g2 spatially cross g1 (only true if the geometries have some but not all interior points in common. https://blogs.msdn.microsoft.com/davidlean/2008/10/24/sql-2008-spatial-samples-part-8-of-9-conditional-methods/
SpatialDifference = 9ST_Difference(g1, g2) - Removes the parameter shape g1 from the shape g2. Order is important g1.STDifference(g2) yeilds a different result from g2.STDifference(g1). https://blogs.msdn.microsoft.com/davidlean/2008/10/25/sql-2008-spatial-samples-part-6-of-9-geometric-set-theory-methods/
SpatialDimension = 10ST_Dimension(g) - Returns an integer to indicate the dimensionality of the spatial object. https://blogs.msdn.microsoft.com/davidlean/2008/10/29/sql-2008-spatial-sample-part-4-of-9-methods-for-drawing-spatial-shapes/
SpatialDisjoint = 11ST_Disjoint(g1, g2) - Returns g2 if a geometry instance is spatially disjoint from another geometry instance. Returns g1 if it is not. https://blogs.msdn.microsoft.com/davidlean/2008/10/24/sql-2008-spatial-samples-part-8-of-9-conditional-methods/
SpatialDistance = 12ST_Distance(g1, g2) - Distance between the closest parts of g1 and g2 Spatial Objects. https://blogs.msdn.microsoft.com/davidlean/2008/10/16/sql-2008-spatial-samples-part-9-of-9-handy-but-obvious-methods/
SpatialEndPoint = 13ST_Endpoint(g) - This function returns a point. The point is the endpoint of a geometry Instance. https://msdn.microsoft.com/en-us/library/bb933879.aspx
SpatialEnvelope = 14ST_Envelope(g) - This function is used to find the minimum rectangle that fits around the geometry instance. https://blogs.msdn.microsoft.com/davidlean/2008/10/26/sql-2008-spatial-samples-part-5-of-9-performance-improvement-methods/
SpatialEquals = 15SpatialExteriorRing = 16SpatialGeometryType = 17SpatialInteriorRingN = 18SpatialIntersection = 19SpatialIntersects = 20SpatialIsClosed = 21SpatialIsEmpty = 22SpatialIsRing = 23SpatialIsSimple = 24SpatialIsValid = 25SpatialLength = 26SpatialNumGeometries = 27SpatialNumInteriorRing = 28SpatialNumPoints = 29SpatialOverlaps = 30SpatialPointN = 31SpatialPointOnSurface = 32SpatialRelate = 33SpatialSrid = 34SpatialStartPoint = 35SpatialSymDifference = 36SpatialTouches = 37SpatialUnion = 38SpatialWithin = 39SpatialX = 40SpatialY = 41Abs = 42Returns the positive integer portion of a number. 1.2 => 1.2, -0.8 => 0.8
Power = 43Sqrt = 44Rand = 45Round = 46Rounds to the nearest whole number. 1.2 => 1, 1.5 => 2, -1.2 => -1, -1.5 => -1, -1.8 => -2
Ceiling = 47Rounds up the the nearest whole number. 1.2 => 2, 1.5 => 2, -1.2 => -1, -1.5 => -1, -1.8 => -1
Floor = 48Rounds down the the nearest whole number. 1.2 => 1, 1.5 => 1, -1.2 => -2, -1.5 => -2, -1.8 => -2
Substring = 49Upper = 50Lower = 51Left = 52TrimLeft = 53Right = 54TrimRight = 55Trim = 56Trims whitespace from both sides of a string. TRIM(' ABC ') => 'ABC'
Length = 57Concat = 58Replace = 59Replaces all occurrences of a substring with another string. REPLACE('Hello World', 'World', 'There') => 'Hello There'
IndexOf = 60Returns the 1-based position of the first occurrence of a substring within a string. Returns 0 if not found.
Day = 61Month = 62Year = 63Hour = 64Extracts the hour component (0-23) from a datetime value.
Minute = 65Extracts the minute component (0-59) from a datetime value.
Second = 66Extracts the second component (0-59) from a datetime value.
NullIf = 67Count = 68CountDistinct = 69Average = 70Sum = 71Max = 72Min = 73Int = 74Returns the integer part of the number. 1.2 => 1, 1.5 => 1, -1.2 => -1, -1.5 => -1, -1.8 => -1
Mod = 75Sin = 76Returns the sine of the angle in radians. SIN(PI()/2) => 1
Cos = 77Returns the cosine of the angle in radians. COS(PI()) => -1
Tan = 78Returns the tangent of the angle in radians. TAN(PI()/4) => 1
Asin = 79Returns the arc sine (inverse sine) in radians. ASIN(1) => PI()/2
Acos = 80Returns the arc cosine (inverse cosine) in radians. ACOS(-1) => PI()
Atan = 81Returns the arc tangent (inverse tangent) in radians. ATAN(1) => PI()/4
Atan2 = 82Returns the arc tangent of y/x in radians, considering the signs of both arguments. ATAN2(1, 1) => PI()/4
Degrees = 83Converts radians to degrees. DEGREES(PI()) => 180
Radians = 84Converts degrees to radians. RADIANS(180) => PI()
Random = 85Now = 86Any = 87All = 88Exists = 89NotExists = 90Cast = 91Coalesce = 92Returns the first non-null value from a list of arguments. COALESCE(NULL, 'A', 'B') => 'A'
Today = 93
Remarks
Velocity provides a unified function abstraction layer that maps to database-specific implementations. This includes mathematical, string, date/time, aggregate, and geospatial functions. Functions are database-agnostic and Velocity handles the translation to the appropriate SQL syntax for each database vendor.