Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vasa-c/go-db
Work with different databases from PHP
https://github.com/vasa-c/go-db
mysql pgsql php sqlite
Last synced: 3 months ago
JSON representation
Work with different databases from PHP
- Host: GitHub
- URL: https://github.com/vasa-c/go-db
- Owner: vasa-c
- License: mit
- Created: 2012-04-21T14:36:00.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2018-02-26T16:45:19.000Z (almost 7 years ago)
- Last Synced: 2024-09-28T18:21:45.073Z (4 months ago)
- Topics: mysql, pgsql, php, sqlite
- Language: PHP
- Homepage:
- Size: 496 KB
- Stars: 64
- Watchers: 21
- Forks: 11
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# go\DB: работа с различными БД из PHP
[![Latest Stable Version](https://img.shields.io/packagist/v/go/db.svg?style=flat-square)](https://packagist.org/packages/go/db)
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%205.3-8892BF.svg?style=flat-square)](https://php.net/)
[![Build Status](https://img.shields.io/travis/vasa-c/go-db/master.svg?style=flat-square)](https://travis-ci.org/vasa-c/go-db)
[![Coverage Status](https://coveralls.io/repos/vasa-c/go-db/badge.svg?branch=master&service=github)](https://coveralls.io/github/vasa-c/go-db?branch=master)
[![License](https://poser.pugx.org/go/db/license)](LICENSE)![logo](http://img-fotki.yandex.ru/get/5801/go-ns.0/0_500ae_e4ea1806_orig.png)
* Поддерживаемые адаптеры: MySQL, SQLite, PgSQL
* Документация: https://github.com/vasa-c/go-db/wiki
* Обсуждение на pyha.ru: http://pyha.ru/forum/topic/554.0
* Версия 1.x: https://github.com/vasa-c/godb-old
* Лицензия: MIT (https://github.com/vasa-c/go-db/blob/master/LICENSE)
* Тестировано под Debian для PHP 5.(3,4,5,6), PHP 7.(0.1.2), HHVM## Установка
* Composer: `go/db`
* Релизы: https://github.com/vasa-c/go-db/tags
* Репа: [email protected]:vasa-c/go-db.git## Документация
* [Идеология и основные принципы](https://github.com/vasa-c/go-db/wiki/intro)
* [Установка и системные требования](https://github.com/vasa-c/go-db/wiki/install)
* [Создание подключения к базе](https://github.com/vasa-c/go-db/wiki/create)
* [Выполнение запроса](https://github.com/vasa-c/go-db/wiki/query)
* [Шаблон запроса: плейсхолдеры](https://github.com/vasa-c/go-db/wiki/placeholders)
* [Именованные плейсхолдеры](https://github.com/vasa-c/go-db/wiki/named)
* [Префикс имён таблиц](https://github.com/vasa-c/go-db/wiki/prefix)
* [Разбор результата](https://github.com/vasa-c/go-db/wiki/fetch)
* [Обработка ошибок](https://github.com/vasa-c/go-db/wiki/Exceptions)
* [Хранилище объектов подключений](https://github.com/vasa-c/go-db/wiki/Storage)
* [Отладочная информация](https://github.com/vasa-c/go-db/wiki/debug)
* [Отложенное подключение и закрытие соединения](https://github.com/vasa-c/go-db/wiki/connect)
* [Клонирование объекта базы](https://github.com/vasa-c/go-db/wiki/clone)
* [Надстройка над таблицами](https://github.com/vasa-c/go-db/wiki/Table)### Форматы данных
* [Формат WHERE](https://github.com/vasa-c/go-db/wiki/where)
* [Формат COLS](https://github.com/vasa-c/go-db/wiki/cols)
* [Формат TABLE](https://github.com/vasa-c/go-db/wiki/table-format)
* [Формат SET](https://github.com/vasa-c/go-db/wiki/set)### Дополнительно
* [Unit-тесты](https://github.com/vasa-c/go-db/wiki/tests)
* [Написание адаптеров](https://github.com/vasa-c/go-db/wiki/Adapters)
* [Compat: совместимость со старыми версиями](https://github.com/vasa-c/go-db/wiki/Compat)### Поддерживаемые адаптеры
* [mysql](https://github.com/vasa-c/go-db/wiki/Adapters_mysql)
* [mysqlold](https://github.com/vasa-c/go-db/wiki/Adapters_mysqlold)
* [sqlite](https://github.com/vasa-c/go-db/wiki/Adapters_sqlite)
* [pgsql](https://github.com/vasa-c/go-db/wiki/Adapters_pgsql)## Отдельное спасибо
* Dallone aka Алексей Полев, за адаптер PgSQL