It is random what ench books villagers have. Unless you use cheats, you cannot GUARANTEE a mending book. And no, not all librarians give mending books. If they do, they charge double. Also maybe kinda duplicate-ishy thingy? You could have looked it up --> https://gaming.stackexchange.com/questions/260525/how-to-get-the-mending-enchantment