public void Property() { var property = Native.leveldb_property_value(Database, "leveldb.stats"); Assert.IsNotNull(property); Console.WriteLine("LevelDB stats: {0}", property); }
/// <summary> /// DB implementations can export properties about their state via this /// method. If "property" is a valid property understood by this DB /// implementation, it returns its current value. Otherwise it returns /// null. /// /// Valid property names include: /// "leveldb.num-files-at-level<N>" - return the number of files at level <N>, /// where <N> is an ASCII representation of a level number (e.g. "0"). /// "leveldb.stats" - returns a multi-line string that describes statistics /// about the internal operation of the DB. /// "leveldb.sstables" - returns a multi-line string that describes all /// of the sstables that make up the db contents. /// </summary> public string GetProperty(string property) { CheckDisposed(); if (property == null) { throw new ArgumentNullException("property"); } return(Native.leveldb_property_value(Handle, property)); }