Esempio n. 1
0
        public void Execute(LiteEngine db, StringScanner s, Display display)
        {
            var name  = s.Scan(@"[\w-]+\s*").Trim();
            var value = new JsonReader().ReadValue(s);

            db.SetParameter(name, value.RawValue);

            display.WriteBson(db.GetDatabaseInfo());
        }
Esempio n. 2
0
        public void Execute(LiteEngine db, StringScanner s, Display display)
        {
            if (db == null)
            {
                throw new LiteException("No database");
            }

            display.WriteBson(db.GetDatabaseInfo());
        }
Esempio n. 3
0
 public void Execute(LiteEngine db, StringScanner s, Display display)
 {
     display.WriteBson(db.GetDatabaseInfo());
 }