Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MotherDuck plugin for DuckDB #511

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sterlinm
Copy link

Overview

Creating a plugin for the DuckDB CLI to allow you to securely store your MotherDuck token using 1password.

Type of change

  • Created a new plugin
  • Improved an existing plugin
  • Fixed a bug in an existing plugin
  • Improved contributor utilities or experience

Related Issue(s)

  • Resolves: #
  • Relates: #

How To Test

The plugin is used whenever the duckdb cli is called, except in the case where the user has specified the md_token in one of the arguments to the CLI.

These will use the plugin:

  • duckdb
  • duckdb 'md:'
  • duckdb localdb.ddb

From the DuckDB CLI interface, if you run PRAGMA PRINT_MD_TOKEN; it should print out the token that you have stored in 1password.

This would not use the plugin:

  • duckdb "md:my_db?motherduck_token=<motherduck_token>"

If you run PRAGMA PRINT_MD_TOKEN; you should see the token matching <motherduck_token> rather than the token you have stored in 1password (assuming it's a different token).

Changelog

@sterlinm
Copy link
Author

Hi folks! If there's any more information you need from me, please let me know. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant