Is magnesium oxide ionic or covalent?

Is magnesium oxide ionic or covalent?