Some antipsychotic drugs prescribed during pregnancy have been associated with added risk of gestational diabetes, according to a nationwide analysis of data.