Exemplo n.º 1
0
 def makeRegistry(self) -> Registry:
     _, filename = tempfile.mkstemp(dir=self.root, suffix=".sqlite3")
     config = self.makeRegistryConfig()
     config["db"] = f"sqlite:///{filename}"
     return Registry.createFromConfig(config, butlerRoot=self.root)
Exemplo n.º 2
0
 def makeRegistry(self) -> Registry:
     config = self.makeRegistryConfig()
     config["db"] = "sqlite://"
     return Registry.createFromConfig(config)
Exemplo n.º 3
0
 def makeRegistry(self) -> Registry:
     namespace = f"namespace_{secrets.token_hex(8).lower()}"
     config = self.makeRegistryConfig()
     config["db"] = self.server.url()
     config["namespace"] = namespace
     return Registry.createFromConfig(config)