Title: provide 'standard' mechanism for database schema name selection (database.prefix?) · Issue #490 · datajoint/datajoint-python · GitHub
Open Graph Title: provide 'standard' mechanism for database schema name selection (database.prefix?) · Issue #490 · datajoint/datajoint-python
X Title: provide 'standard' mechanism for database schema name selection (database.prefix?) · Issue #490 · datajoint/datajoint-python
Description: We have been discussing the use of ‘configurable’ database strings for testing purposes in schema development work - One useful mechanism to use is a ‘database prefix’ - a string which is prepended to the ‘common’ name of a database sche...
Open Graph Description: We have been discussing the use of ‘configurable’ database strings for testing purposes in schema development work - One useful mechanism to use is a ‘database prefix’ - a string which is prepended...
X Description: We have been discussing the use of ‘configurable’ database strings for testing purposes in schema development work - One useful mechanism to use is a ‘database prefix’ - a string which is prepended...
Opengraph URL: https://github.com/datajoint/datajoint-python/issues/490
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"provide 'standard' mechanism for database schema name selection (database.prefix?)","articleBody":"We have been discussing the use of ‘configurable’ database strings for testing purposes in schema development work -\r\n\r\nOne useful mechanism to use is a ‘database prefix’ - a string which is prepended to the ‘common’ name of a database schema - for example:\r\n```\r\nprefix = ‘my_test_’\r\ndbname = ‘database’\r\n```\r\n-\u003e application code will use: `‘my_test_database’`\r\n\r\nIn the codebases where this pattern has been applied, we have implemented this mechanism via:\r\n```\r\nschema = dj.schema(dj.config.get('database.prefix', '') + 'database')\r\n```\r\nSo, wondering if it would make sense to standardize this mechanism in some way since it is useful for schema development/testing and other uses - either directly in the `dj.schema` logic or some other means (utility function, etc)","author":{"url":"https://github.com/ixcat","@type":"Person","name":"ixcat"},"datePublished":"2018-09-19T20:05:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/490/datajoint-python/issues/490"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4bab6776-965b-59ab-a8cc-1492e24f5fe1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AFE4:2B6CAA:1474002:1C5E25B:6A4DEDDD |
| html-safe-nonce | bd0752a879471078f56ad53508987139c3cfae760c61e178ac76695bec133014 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkU0OjJCNkNBQToxNDc0MDAyOjFDNUUyNUI6NkE0REVEREQiLCJ2aXNpdG9yX2lkIjoiODQ2NTg2ODE0OTgzNjYwNjk0MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 15a896665bd1747e569ad7c5aeeee94ea5e037cd18de2282bdece8c0b232721e |
| hovercard-subject-tag | issue:361906722 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/datajoint/datajoint-python/490/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b661f42fe2b5b1cc7bdb2cdd83ad250be0e7a4e877c07027ef4af4d41693a8b0/datajoint/datajoint-python/issues/490 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b661f42fe2b5b1cc7bdb2cdd83ad250be0e7a4e877c07027ef4af4d41693a8b0/datajoint/datajoint-python/issues/490 |
| og:image:alt | We have been discussing the use of ‘configurable’ database strings for testing purposes in schema development work - One useful mechanism to use is a ‘database prefix’ - a string which is prepended... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ixcat |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/datajoint/datajoint-python git https://github.com/datajoint/datajoint-python.git |
| octolytics-dimension-user_id | 2375501 |
| octolytics-dimension-user_login | datajoint |
| octolytics-dimension-repository_id | 5866704 |
| octolytics-dimension-repository_nwo | datajoint/datajoint-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 5866704 |
| octolytics-dimension-repository_network_root_nwo | datajoint/datajoint-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width