Download the PHP package cloudtay/ripple-database without Composer

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

Ripple DB

⚡️ 高性能数据库连接池, 完美兼容PDO接口, 内置连接池

驱动类型 支持
MySQL 已支持
... 暂无

一键安装

快速开始

连接选项

配置项 类型 默认值 描述
... ... PDO默认选项类表
pool_max 整数 20 最大连接数
pool_min 整数 5 最小连接数
pool_connection_timeout 整数 300 连接超时时间(秒)

兼容性

已兼容的PDO方法

方法名 描述 支持状态
PDO::prepare() 预处理语句 支持
PDO::query() 执行查询 支持
PDO::exec() 执行语句并返回受影响行数 支持
PDO::lastInsertId() 获取最后插入 ID 支持
PDO::beginTransaction() 开始事务 支持
PDO::commit() 提交事务 支持
PDO::rollBack() 回滚事务 支持
PDO::inTransaction() 检查是否在事务中 支持
PDO::setAttribute() 设置PDO属性 支持
PDO::getAttribute() 获取PDO属性 支持
PDO::errorCode() 获取错误代码 支持
PDO::errorInfo() 获取错误信息 支持
PDO::getAvailableDrivers() 获取可用驱动列表 支持
PDO::status() 获取连接池状态信息 连接池独有
PDO::close() 关闭连接池 连接池独有
PDO::quote() 引号转义 不支持

类型兼容性

与原生PDO在数据类型处理上完全一致, 确保数据存储和检索的准确性。

数据类型 MySQL 类型 强等于校验
整数类型 TINYINT, SMALLINT, INT, BIGINT 通过
浮点类型 FLOAT, DOUBLE, DECIMAL 通过
字符串类型 CHAR, VARCHAR, TEXT 通过
二进制类型 BLOB 通过
JSON 类型 JSON 通过
日期时间 DATE, DATETIME, TIMESTAMP, TIME, YEAR 通过
布尔类型 BOOLEAN 通过
枚举类型 ENUM, SET 通过

项目包含完整的类型兼容性测试, 确保与原生PDO的行为完全一致:

用法示例

连接池使用

事务处理

许可证

MIT License

作者

cclilshy [email protected]


All versions of ripple-database with dependencies

PHP Build Version
Package Version
Requires ext-pdo Version *
ext-openssl Version *
cloudtay/ripple-kernel Version ^1.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 cloudtay/ripple-database contains the following files

Loading the files please wait ...