TileCook.MBTilesCache.isCompressed C# (CSharp) Method

isCompressed() private method

private isCompressed ( ) : bool
return bool
        private bool isCompressed()
        {
            using (SQLiteConnection con = new SQLiteConnection((string.Format("Data Source={0}", this.Database))))
            {
                con.Open();
                string query = "SELECT 1 FROM sqlite_master WHERE type='table' AND name='tiles'";
                using (SQLiteCommand cmd = new SQLiteCommand(query, con))
                {
                    var result = cmd.ExecuteScalar();
                    return result == null ? true : false;
                }
            }
        }