Download the PHP package yangweijie/think-orm-kdb without Composer

On this page you can find all versions of the php package yangweijie/think-orm-kdb. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package think-orm-kdb

think-orm-kda

人大金仓 驱动 for think-orm

安装

目前win只有 7.2 和 5.6 两个版本

v9r1_pdo_kdb_win.zip

找到nts (对应本地php thread safe)的复制到ext里 改 php.ini

extension=php_pdo_kdb.dll

php -m 后 如果 提示以下错误:

PHP Warning:  PHP Startup: Unable to load dynamic library

则需要把数据库安装目录下的D:\soft\Kingbase\ES\V9\Server\bin中的dll文件和D:\soft\Kingbase\ES\V8\jre\bin中的dll文件都拷贝至C:\Windows\System32目录下。

框架配置

config/database.php中配置

'default'='kdb',
'kdb'=>[
    'type'=>'kdb',
    'hostname'=>'localhost',
    'hostport'=>54321,
    'username'=>'sysdba',
    'password' => 'sysdba',
    'database'=>'blog',
    'charset' => Env::get('database.charset', 'utf8'),
    'prefix' => 'dp_',
]

兼容性

find_in_set

参见src/connector/kdb.sql

json

json 函数必须将字段设置为json 或 jsonb

json_set 函数没有 所以

Test::json(['content'])->where('id', 1)->update([
    'content->nickname'=>'流年2'
]);

这种写法更定json字段里单路径 不支持

主键自增

添加序列 字段设默认值来实现

数据库管理和迁移

navicat

直接以pgsql 方式可以连接

参考

KingbaseES与MySQL的兼容性说明

难点

乱码? 未复现,尝试 在会话里set names 成功

todo

[] 不兼容函数测试


All versions of think-orm-kdb with dependencies

PHP Build Version
Package Version
Requires php Version 5.6 |7.2
topthink/think-orm Version ^2.0
ext-pdo Version *
ext-ctype Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package yangweijie/think-orm-kdb contains the following files

Loading the files please wait ....