Skip to content

Instantly share code, notes, and snippets.

@norbajunior
Created March 2, 2011 00:47
Show Gist options
  • Select an option

  • Save norbajunior/850229 to your computer and use it in GitHub Desktop.

Select an option

Save norbajunior/850229 to your computer and use it in GitHub Desktop.
def buildConnectionString(params):
"""Build a connection string from a dictionary of parameters.
Returns string."""
return ";".join(["%s=%s" % (k, v) for k, v in params.items()])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment