pub fn state_query_script(resource: &Resource) -> Result<String, String>
Generate a state query script for a resource.