CakePHP 3-自定义数据源在哪里? [英] CakePHP 3 - Where is custom datasource?

查看:56
本文介绍了CakePHP 3-自定义数据源在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有大量的CakePHP 2 Web应用程序,其中许多使用自定义数据源上的远程数据。我正在阅读CakePHP 3的文档,但找不到用于创建自定义日期源的说明。

I have a large number of CakePHP 2 web applications, many of them use remote data over the custom DataSource. I'm reading the documentation of CakePHP 3, but I can not find instructions for creating custom datesource.

我的下一个项目也需要一个自定义数据源(ArangoDB),所以我计划使用新版本的CakePHP进行构建。

My next project also requires a custom DataSource (ArangoDB), so I planned to build it with the new version of CakePHP.

请务必指定在CakePHP 3中在何处以及如何构建数据源。

Please do specify where and how to build a DataSource in CakePHP 3.

谢谢。

推荐答案

只要看一下现有数据库驱动程序的代码,看看它是如何构建的?书中没有关于如何创建自己的数据源的任何内容。

Just look at the code of any existing database driver and see how it is built? There is nothing in the book yet about how to create your own datasource.

ArangoDB似乎又是另一种NoSQL DB,因此请查看如何完成弹性搜索数据源。快速浏览,我认为您可以将其用作实现的基础,它们似乎相似。

ArangoDB seems to be yet another NoSQL DB, so take a look at how this Elastic Search datasource is done. By a quick look I think you can use it as a base for your implemention, they seem to be similar.

这篇关于CakePHP 3-自定义数据源在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆