Download the PHP package haoa/mix-database without Composer

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

Installation

Quick start

注意:协程环境中,不可在并发请求中使用单例

创建

查询

更新

删除

启动连接池 Pool

Swoole 协程环境中,启动连接池

连接池统计

创建 Insert

创建

获取 InsertId

替换创建

批量创建

使用函数创建

查询 Select

获取结果

方法名称 描述
get(): array 获取多行
first(): array or object 获取第一行
value(string $field): mixed 获取第一行某个字段
statement(): \PDOStatement 获取原始结果集

Where

AND

OR

IN

Select

Order

Limit

Group & Having

Join

更新 Update

更新单个字段

获取影响行数

更新多个字段

使用表达式更新

使用函数更新

删除 Delete

删除

获取影响行数

原生 Raw

事务 Transaction

手动事务

自动事务,执行异常自动回滚并抛出异常

调试 Debug

日志 Logger

日志记录器,配置后可打印全部SQL信息

$logger 需实现 Mix\Database\LoggerInterface

License

Apache License Version 2.0, http://www.apache.org/licenses/


All versions of mix-database with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.0
ext-pdo Version *
mix/object-pool Version ~3.0.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 haoa/mix-database contains the following files

Loading the files please wait ....