Giorgi / DuckDB.NET

Bindings and ADO.NET Provider for DuckDB
https://duckdb.net
MIT License
405 stars 68 forks source link

Support for motherduck #157

Closed darrenkeydata closed 11 months ago

darrenkeydata commented 11 months ago

Can you add support for motherduck connection strings?

https://motherduck.com/docs/authenticating-to-motherduck

Giorgi commented 11 months ago

In theory, I could but I'm not sure if the MotherDuck connection strings are supported by the ducdkb native library or some other library on top of it.

darrenkeydata commented 11 months ago

@Giorgi I just got it to work. Just had to set DataSource={md connection string}

Giorgi commented 11 months ago

@darrenkeydata Great! Can you send a PR to update the ReadMe to explain how to get it working?

darrenkeydata commented 11 months ago

@Giorgi here is how it is used

using (var duckDBConnection = new DuckDBConnection("DataSource=md:?motherduck_token=<token>"))
{
}
Giorgi commented 11 months ago

It would be great if you could update RaedMe with that example.