Ads Top

download blazingdb for python





https://pypi.python.org/pypi/blazingdb





Intro

blazingdb.com python connector to BlazingDB, a high performance DB with petabyte scaling. BlazingDB is an extremely fast SQL database able to handle petabyte scale.

Installation

pip install blazingdb

Usage

Verify connection
>>> from blazingdb import BlazingPyConnector
>>> bl = BlazingPyConnector('127.0.0.1','user@domain.com','password','database_name')
>>> con = bl.connect()
>>> result = bl.run("list tables",con)
>>> print result.status
>>> print result.rows
Examples
>>> from blazingdb import BlazingPyConnector
>>> bl = BlazingPyConnector('127.0.0.1','user@domain.com','password','database_name')
>>> con = bl.connect()
>>> result = bl.run("create table my_new_table (field1 string(20), field2 long, field3 date, field4 double)",con)
>>> print result.status
>>> result = bl.run("insert into my_new_table (field1, field2 long, field3, field4) values ('hello world', 1400, '20162010', 15.5)",con)
>>> result = bl.run("select * from my_new_table limit 10",con)
>>> for row in result.rows:
>>>     print row

More SQL Docs

Please visit your SQL Guide for more information about query structures and examples.

Author

BlazingDB Inc. (www.blazingdb.com)

Deploy

python setup.py sdist upload -r pypi
download blazingdb for python download blazingdb for python Reviewed by Unknown on 09:07:00 Rating: 5

Aucun commentaire

Comments