pub fn document_supplied_id( document: &ResultRow, id_column: &str, auto_increment: bool, ) -> Result<Option<DocId>, SQLError>