Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • W wendelin.core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedinexedi
  • wendelin.core
  • Repository
  • wendelin.core
  • lib
  • tests
  • test_zodb.py
Find file BlameHistoryPermalink
  • Kirill Smelkov's avatar
    lib/zodb: Add zstor_2zurl - way to convert a ZODB storage into URL to access it · 6637d216
    Kirill Smelkov authored Apr 15, 2020
    Wendelin.core 2 will need to spawn WCFS filesystem server that accesses
    the same ZODB database as the program that spawns it. The database
    argument passed to WCFS is passed in the form of URL[1,2].  Even though
    zodburi provides way to convert an URL into ZODB storage instance, there
    is currently no way for reverse operation - to convert ZODB storage
    instance into URL to access it(*). So we have to build it by our own.
    
    Provide zstor_2zurl stub that currently works for FileStorage only.
    ZEO and NEO support is TODO.
    
    In the future we might want to move this functionality into
    zodbtools/py.
    
    [1] https://lab.nexedi.com/nexedi/zodbtools/blob/a2e4dd23/zodbtools/help.py#L27-53
    [2] https://lab.nexedi.com/kirr/neo/blob/3d909114/go/zodb/zodbtools/help.go#L25-51
    
    (*) contrary to ZODB/go where this functionality is provided out of the box:
        https://godoc.org/lab.nexedi.com/kirr/neo/go/zodb#IStorage
    6637d216
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7