Can i wire my 120v compressor up to my battery?

Michael G asked: i have a small 3 gallon compressor that i want to mount under the bed of my truck so i can use it to air up my tires on my truck. can i just wire that straight up to my battery? or will that mess something up?
and would i be able [...]