2017 © Pedro Peláez
 

project console-query-tool

Console tool wich provide unified interface different database drivers

image

mev/console-query-tool

Console tool wich provide unified interface different database drivers

  • Tuesday, December 6, 2016
  • by skip1000
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Console Query Tool

Build Status, (*1)

Application is a simple MongoDB client which works in console end executes SQL statement as native mongo queries., (*2)


Requirements

  • php 5.6 or greater
  • php-mongodb extension
  • unix compatible platform

Installation

composer requires mev/console-query-tool

Usage

php bin/app.php <command> <options> <query>

Available commands:, (*3)

query:execute - Execute SQL query

Available options:, (*4)

--host[=HOST]     MongoDB server host [default: "localhost"]
--port[=PORT]     MongoDB server port [default: 27017]
--db=DB           MongoDB database
-h, --help        Display a help message

Example, (*5)

php bin/app.php query:execute --db=test "SELECT price, name FROM books WHERE price >=5"

Supported statements:, (*6)

  • SELECT (without subqueries)
  • WHERE
  • LIMIT
  • ORDER BY

Supported compare operators:, (*7)

  • = - equal
  • <> - not equal
  • < - less than
  • > - greater than
  • >= - greater than or equal
  • <= - less than or equal

Supported logical operators:, (*8)

  • AND
  • OR

The Versions

06/12 2016

dev-master

9999999-dev

Console tool wich provide unified interface different database drivers

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

by kolomiets