图数据库转换为关系数据库(Graph database conversion into relational database)
我已经基于图形数据库创建了一个Web应用程序。 我想知道是否有可能将图形数据库转换为关系数据库。
先谢谢你。
I have already created a web application based on a graph database. I am wondering if there is a possibility to convert the graph database into a relational database.
Thank you in advance.
原文:https://stackoverflow.com/questions/33113723
最满意答案
我最初的假设是正确的。 需要在包的composer.json文件中为包定义自动加载。 包之外的任何内容都不应该知道自动加载是如何完成的。 我不确定为什么我做的事情没能奏效。 无论如何,我最近没有碰到这个。
My initial assumption was correct. One needs to define the autoloading for a package within the composer.json file of the package. Nothing outside of the package should know about how its autoloading is done. I am unsure why what I was doing failed to work. In any case, I have not run into this recently.
相关问答
更多-
您需要将以下部分添加到您的全局composer.json中 "repositories": [ { "type": "path", "url": "packages/*/*" } ] 您还需要将包添加到composer.json中的require对象 You need to add the following section to your global composer.json "repositories": [ { "type" ...
-
PSR-0是自动加载的标准,但它已弃用(如果可以,请使用PSR-4)。 在这里查看更多。 关于作曲家自动加载的文档请看这里 It seems to be better: "autoload": { "psr-0": { "TestJames\\": "Models/" } } 你执行过“作曲家更新”吗? 它会创建您的供应商目录和autoload.php文件。 同样重要的是,在尝试访问此类之前,您需要在执行流程中使用vendor / autoload.php。 PSR-0 is a standard ...
-
当你指定一个包存储库时,你基本上提供了该包的composer.json中的所有细节(如果有的话)。 为了自动加载,必须指定包的autoload属性。 作曲家手册有关autoload属性的详细信息 。 如果您的bitbucket存储库符合PSR-0或PSR-4,则只需指定正确的标准以及要加载的类存储在存储库中的位置即可。 例如,使用PSR-4和您的类存储在src/目录中: { "require": { "jasongrimes": "dev-master" }, "re ...
-
composer.json只是一个描述你的应用程序及其需求的配置文件! 我的意思是,你的应用程序,它的版本,以及正常工作所需的东西[也称为“ 依赖 ”]都可以写在composer.json文件中,以减轻下载或尝试使用的负担知道它需要什么才能起作用。 例如,我可以为此Image uploader repo包含一个composer.json文件,该文件说repo requires PHP GD库才能工作并在packagist上提交repo。 通过这样做,每当有人使用Composer下载repo时,所需的库( 其 ...
-
您的JSON很糟糕,将您的JSON粘贴到此网站: http : //jsonlint.com/ 它返回错误: Parse error on line 1: "repositories": [ ^ Expecting '{', '[' 如果用{在开始处}和在最后一端包围整个JSON,则无效的JSON变为有效。 Your JSON is bad, Paste your JSON into this website: http://jsonlint.com/ It returns the error: Pa ...
-
我认为错误就在这里 "drinkr\\models": "models/Beers" 和 namespace Beer; 将文件“beers.php”重命名为“Beers.php”并将名称空间更改为“Beers” I think mistake is here "drinkr\\models": "models/Beers" and namespace Beer; rename file "beers.php" to "Beers.php" and change namespace to "Beers"
-
尝试 composer show --installed --tree 或速记 composer show -i -t Try composer show --installed --tree Or the shorthand composer show -i -t
-
我最初的假设是正确的。 需要在包的composer.json文件中为包定义自动加载。 包之外的任何内容都不应该知道自动加载是如何完成的。 我不确定为什么我做的事情没能奏效。 无论如何,我最近没有碰到这个。 My initial assumption was correct. One needs to define the autoloading for a package within the composer.json file of the package. Nothing outside of the ...
-
使用Composer.json文件(Using Composer.json file)[2023-09-13]
它们意味着当您运行composer update ,这些软件包将仅更新到选定的版本。 例如,如果您将告诉作曲家laravel/framework": "5.2.*", ,框架永远不会更新到5.3 ,但最多只能更新到5.2.* ~运算符最好用例子解释: ~1.2相当于>=1.2 <2.0.0 ,而~1.2.3相当于>=1.2.3 <1.3.0 ^运算符的行为非常相似,但它更接近语义版本控制,并且总是允许不间断的更新。 例如, ^1.2.3相当于>=1.2.3 <2.0.0因为在2.0之前的任何版本都不应该破坏 ... -
为什么在laravel中你需要在composer.json中指定类(Why in laravel do you need to specify classes in composer.json)[2022-04-15]
您无需在composer.json指定类。 当然,如果你愿意,你可以这样做,但对于大多数情况,没有必要这样做。 我们来看看Laravels默认composer.json的autoload部分 "autoload": { "classmap": [ "app/commands", "app/controllers", "app/models", "app/database/migrations", "app/databas ...