Ejemplo n.º 1
0
 public SqlParser(ILiteEngine engine, Tokenizer tokenizer, BsonDocument parameters)
 {
     _engine     = engine;
     _tokenizer  = tokenizer;
     _parameters = parameters ?? new BsonDocument();
     _collation  = new Lazy <Collation>(() => new Collation(_engine.Pragma(Pragmas.COLLATION)));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Get value from internal engine variables
 /// </summary>
 public BsonValue Pragma(string name)
 {
     return(_engine.Pragma(name));
 }