10 using NUnit.Framework;
12 namespace Deveel.Data.Spatial {
16 container.UseSpatial();
25 var invoke =
new Invoke(functionName, args);
27 return Query.InvokeFunction(invoke);
32 const string text =
"FROM_WKT('POINT(50.100299 12.3399)')";
34 var result = ParseAndInvoke(text);
36 Assert.IsNotNull(result);
37 Assert.IsFalse(result.IsNull);
49 const string text =
"DISTANCE(FROM_WKT('POINT(59.9308785 10.7893356)'), FROM_WKT('POINT(59.9284945 10.7786121)'))";
51 var result = ParseAndInvoke(text);
53 Assert.IsNotNull(result);
54 Assert.IsFalse(result.IsNull);
static SqlExpression Parse(string s)
Parses the given SQL string to an expression that can be evaluated.
override void RegisterServices(ServiceContainer container)
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
The information about the invocation of a routine, including the full name and arguments (as SqlExpre...
DataObject ParseAndInvoke(string text)
Defines the base class for instances that represent SQL expression tree nodes.