question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mechanism for passing additional options to `datasette my.db` that affect plugins

See original GitHub issue

It’s a shame there’s no obvious mechanism for passing additional options to datasette my.db that affect how plugins work.

The only way I can think of at the moment is via environment variables:

DATASETTE_INSERT_UNSAFE=1 datasette my.db

This will have to do for the moment - it’s ugly enough that people will at least know they are doing something unsafe, which is the goal here. _Originally posted by @simonw in https://github.com/simonw/datasette-insert/issues/15#issuecomment-667346438_

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
simonwcommented, Jan 4, 2021

I renamed --config to --setting and changed it to work like this:

datasette --setting sql_time_limit_ms 1000

Note the lack of colons.

This actually makes colons cleaner to use for plugins - I could support this:

datasette --setting datasette-insert:unsafe 1
0reactions
simonwcommented, Jan 4, 2021

That’s pretty elegant: each plugin gets its own namespace and can register new settings.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Internals for plugins - Datasette documentation
Many Plugin hooks are passed objects that provide access to internal Datasette functionality. The interface to these objects should not be considered stable ......
Read more >
New Rendering Options in datasette-client - Observable
This is useful if, for example, your SQLite database as BLOB ... also load in the Leaflet.markercluster plugin for the cluster map effect....
Read more >
Apply conversion functions to data in SQLite columns with the ...
sqlite-utils convert content.db articles content ... invent a new command-line mechanism for passing in additional options to the individual ...
Read more >
How To Use The Noise Gate Plugin In Logic Pro - Charles Cleyn
You can follow along with any type of audio track or midi track. Here's what my vocal track looks like: You will need...
Read more >
Personal search engine with datasette and dogsheep Transcript
And it coincided with my university course giving me the option to spend a ... plugin that supports the indie auth authentication mechanism....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found