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)
def makeRegistry(self) -> Registry: config = self.makeRegistryConfig() config["db"] = "sqlite://" return Registry.createFromConfig(config)
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)