I'll take a slightly different view...
I have been thinking of doing this to my own boat (as soon as we close on her, that is!)I agree with Peggy that an un-regulated, un-protected dockside water connection is a great way to sink a boat! However, with the tid-bits below, one can put together a system that works, has reasonable safegards against flooding and provides a good volume of regulated water for your boat at dockside. Nothing will prevent flooding of the boat like a watchfull, aware skipper, however, so I agree that you should never leave the boat with the pressure water connected & "on"!Borrowing a page from the housing industry and one from the RV world, this is what I'd do:1-use an inlet connection from the RV world that is made from UV resistant plastic. There are several types available, some have built-in pressure regulators (which I would stay away from, because they reduce flow and pressure)2-As Peggy suggests, us a volume-triggered valve that shuts off after a user-selectable amount. These are found in the gardening section of places like home depot.3-While at home depot, pick up a brass whole-house pressure regulator. This is a well built, full flow device often used in places that have high or irregular domestic water pressure.4-While at the RV store, get a one-way valve to put after the pump but before the boat's water system. Surflow (sp) is a common brand. (maker of pumps used in boats & RVs)5-Tee off after the one way valve and connect up the dockside water inlet.(remember to use a potable water hose for the connection. You may also want to add a small combo (particulate & carbon) filter to the line after the "tee" to keep most of the big stuff and some of the blecky taste out of the system.)I have a similar system in my RV & use it with confidence every time we go camping.Finally, with simple valving, you can use this supply to fill your internal tanks with filtered water without opening a fill on the deck and sticking a random garden hose into the hole and hoping no ugly stuff gets in at the same time!Good Luck!