can queries be shared between connections

Avatar

Is it possible to share queries between different connections. We have production and lower-level development environments. I would have connections for each environment and all the queries shared between environments.