fsprojects / AzureStorageTypeProvider

An F# Azure Type Provider which can be used to explore Blob, Table and Queue Azure Storage assets and easily apply CRUD operations on them.
http://fsprojects.github.io/AzureStorageTypeProvider/
The Unlicense
84 stars 34 forks source link

Allow use of whole connection string #44

Closed dsyme closed 9 years ago

dsyme commented 9 years ago

It would be nice if the type provider just allowed a single connection string like this, which is what Azure gives you in some instances:

type Account = AzureTypeProvider<"DefaultEndpointsProtocol=https;AccountName=nameOfStorage;AccountKey=AHIUDMNWIKCSMNSCI(*WN"NC(*E==">

(That's not my real connection string :) )

isaacabraham commented 9 years ago

True. Is it possible to overload type provider arguments so that we can supply either the full connection string or the existing form of name / key?

dsyme commented 9 years ago

Sort of - you can either just make the second optional and "work it out" from the first argument (the JSON and XML type providers do this), or encourage people to use named arguments, STP<Account="abc¬,Key="def"> and STP<ConnectionString="nnnnn">