HealthMonitoring.Persistence.MySqlDatabase.DoesTableExists C# (CSharp) Method

DoesTableExists() private method

private DoesTableExists ( IDbConnection conn, string tableName ) : bool
conn IDbConnection
tableName string
return bool
        private bool DoesTableExists(IDbConnection conn, string tableName)
        {
            var query = $@"SELECT 1
FROM information_schema.TABLES
WHERE
TABLE_NAME='{tableName}'
AND TABLE_SCHEMA='{_databaseName}'";

            return conn
                .Query(query)
                .Any();
        }