Download the PHP package be/db4 without Composer

On this page you can find all versions of the php package be/db4. 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 db4

简介

本数据库类经过实际使用中大量改进优化,在保证安全的前提下提供了极高的执行效率。实际项目中, 我们大量用作亿级Mysql数据的快速迁移,转换处理。实路证明PHP的效率完全可以媲美ETL工具。

PHP处理大量数据时,你是否经常遇到内存溢出?使用本类库的迭代器方法不仅消耗极少的内存,页且效率极高,在我们公司的服务器上的数据迁移操作:

创建实例


ThinkPHP 配置


字符串方式
数组方式

事务处理示例

读相关操作

迭代器
占位符

写相关操作


对象插入
数组插入
批量插入
快速插入,未预编译SQL
更新用户资料
新增或更新(主键冲突时更新)

其它


拼接SQL, 防注入
拼接SQL, 防注入, escape 方法
执行 SQL

迭代器方法

迭代器方法格式为 getYield***()

迭代器方法因为游标长时间未释放,为了实现在迭代期间的SQL操作,迭代器方法重建了一个新的数据库连接,迭代处理完成后,该连接释放。

因此,迭代器方法如果用在了事务中,不应该操作事务相关的数据,MYSQL 的默认事务隔离级别使得迭代器方法读取不到事务中尚未提交的数据。

当MYSQL的事务隔离级别为 READ-UNCOMMITTED(读取未提交) 时,迭代器方法才可以读取到未提交的数据。


All versions of db4 with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
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 be/db4 contains the following files

Loading the files please wait ....