{"id":15022185,"url":"https://github.com/php/pecl-database-mysql_xdevapi","last_synced_at":"2025-10-19T22:31:54.029Z","repository":{"id":26036746,"uuid":"104350908","full_name":"php/pecl-database-mysql_xdevapi","owner":"php","description":"PECL MySQL X  DevAPI","archived":false,"fork":false,"pushed_at":"2024-07-27T03:55:23.000Z","size":5573,"stargazers_count":17,"open_issues_count":3,"forks_count":13,"subscribers_count":18,"default_branch":"trunk","last_synced_at":"2025-02-03T13:26:20.328Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pecl.php.net/package/mysql_xdevapi","language":"C++","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-21T13:21:08.000Z","updated_at":"2023-09-06T11:13:26.000Z","dependencies_parsed_at":"2024-11-19T21:39:00.577Z","dependency_job_id":null,"html_url":"https://github.com/php/pecl-database-mysql_xdevapi","commit_stats":{"total_commits":1208,"total_committers":23,"mean_commits":52.52173913043478,"dds":0.3418874172185431,"last_synced_commit":"41f52fbca6acce68780b66efca4a75815b548661"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fpecl-database-mysql_xdevapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fpecl-database-mysql_xdevapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fpecl-database-mysql_xdevapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fpecl-database-mysql_xdevapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php","download_url":"https://codeload.github.com/php/pecl-database-mysql_xdevapi/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237224787,"owners_count":19275086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T19:57:36.538Z","updated_at":"2025-10-19T22:31:48.452Z","avatar_url":"https://github.com/php.png","language":"C++","readme":"MySQL X DevAPI for PHP\n======================\n\nThis PHP Extension provides MySQL's X DevAPI. The X DevAPI is a new CRUD-style\nAPI for accessing MySQL as a Document Store. It is based on the MySQL 8's X\nprotocol and unifies JSON document and table access, and it includes SQL\nsupport. The API features a popular fluent interface style and aims to be\nparticularly easy to use yet powerful. The X DevAPI sees wide cross product\nsupport. Developers can use the same syntax and rely on the existence of\nvirtually the same feature set in may products they work with on a day to\nday basis.\n\nThe X DevAPI combines elements of the relational database model with elements\nof storing JSON documents. Working with schemaless data serialized in JSON has\nbecome very popular in recent years. Schema flexibility allows data-first\ndevelopment models. For example, application developers do not need to define\nthe very details of the data to be stored before it can be saved, customers\ncan model applications using an iterative approach, defining the details along\nthe way when they work with the developers. In other areas a mode-first\ndevelopment model may fit the brief better. The X DevAPI supports both working\nwith schemaful relational tables and schemaless collections of JSON documents.\n\nThe X DevAPI abstracts the notion of a connection to that of a session. A\nsession encapsulates physical connections. This concept is crucial for\nany environment where the creation, selection and life span of a physical\nconnection shall not be a concern of the application developer.\n\nTo learn more about the details of the X DevAPI refer to the documentation on\nhttp://dev.mysql.com/doc/x-devapi-userguide/en/\n\nTo learn more about MySQL as a Document Store efer to documentation on\nhttp://dev.mysql.com/doc/refman/8.0/en/document-store.html\n\n\nInstallation\n------------\n\nThis extension depends on PHP 7.1 or newer. For general installation instructions\nfor PHP extensions see http://php.net/install.pecl\n\nIn addition to PHP's dependencies, Google's Protocol Buffer and boost libraries\nare required. On any Linux-based systems a package called libprotobuf-dev or\nsimilar is required.\n\nFurther hints for installing this module:\nhttp://php.net/manual/en/mysql-xdevapi.setup.php\n\n\nDocumentation\n------------\n\nDocumentation is available at:\nhttp://php.net/manual/en/book.mysql-xdevapi.php\n\n\nSupported X DevAPI features\n---------------------------\n- collections API - add, find, modify, remove\n- collection single doc API - getOne, replaceOne, addOrReplaceOne, removeOne\n- new document _id generation\n- authentication modes: MYSQL41, PLAIN, EXTERNAL, SHA256_MEM\n- table API - insert, select, update, delete\n- row locking for Collection.Find / Table.Select, also modes NOWAIT and SKIP LOCKED\n- collection / table - getName, existsInDatabase, count\n- collection index - create, drop\n- resultsets / multi-resultsets\n- getCollection(s) / getTable(s) / getCollectionAsTable\n- drop schema / collection\n- connection pooling\n- DNS SRV support\n- connection compression\n- schema validation to create collection\n\nFor a simple use cases see examples.php or tests/*.phpt\n\nLicense\n-------\nCopyright (c) The PHP Group\n\nThis source file is subject to version 3.01 of the PHP license,\nthat is bundled with this package in the file LICENSE, and is\navailable through the world-wide-web at the following url:\nhttp://www.php.net/license/3_01.txt\nIf you did not receive a copy of the PHP license and are unable to\nobtain it through the world-wide-web, please send a note to\nlicense@php.net so we can mail you a copy immediately.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp%2Fpecl-database-mysql_xdevapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp%2Fpecl-database-mysql_xdevapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp%2Fpecl-database-mysql_xdevapi/lists"}