Skip to content
This repository was archived by the owner on Dec 2, 2019. It is now read-only.

Commit

Permalink
DBAPI -> DB-API
Browse files Browse the repository at this point in the history
  • Loading branch information
jingw committed Feb 3, 2014
1 parent 36d9ec4 commit de335b7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PyHive is a collection of Python `DB-API <http://www.python.org/dev/peps/pep-024
Usage
=====

DBAPI
DB-API
-----
.. code-block:: python
Expand All @@ -34,8 +34,8 @@ SQLAlchemy
Requirements
============

- Presto DBAPI: Just a Presto install
- Hive DBAPI: HiveServer2 daemon, ``TCLIService``, ``thrift``, ``sasl``, ``thrift_sasl``
- Presto DB-API: Just a Presto install
- Hive DB-API: HiveServer2 daemon, ``TCLIService``, ``thrift``, ``sasl``, ``thrift_sasl``
- SQLAlchemy integration: ``sqlalchemy`` version 0.5

Testing
Expand Down
4 changes: 2 additions & 2 deletions pyhive/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


class DBAPICursor(object):
"""Base class for some common DBAPI logic"""
"""Base class for some common DB-API logic"""
__metaclass__ = abc.ABCMeta

_STATE_NONE = 0
Expand All @@ -22,7 +22,7 @@ def __init__(self, poll_interval=1):

def _reset_state(self):
"""Reset state about the previous query in preparation for running another query"""
# State to return as part of DBAPI
# State to return as part of DB-API
self._rownumber = 0

# Internal helper state
Expand Down
2 changes: 1 addition & 1 deletion pyhive/hive.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from TCLIService import ttypes
from pyhive import common
from pyhive.common import DBAPITypeObject
# Make all exceptions visible in this module per DBAPI
# Make all exceptions visible in this module per DB-API
from pyhive.exc import *
import getpass
import logging
Expand Down
2 changes: 1 addition & 1 deletion pyhive/presto.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from pyhive import common
from pyhive.common import DBAPITypeObject
# Make all exceptions visible in this module per DBAPI
# Make all exceptions visible in this module per DB-API
from pyhive.exc import *
import getpass
import logging
Expand Down
4 changes: 1 addition & 3 deletions pyhive/tests/dbapi_test_case.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
"""
Shared DBAPI test cases
"""
"""Shared DB-API test cases"""
from pyhive import exc
import abc
import contextlib
Expand Down

0 comments on commit de335b7

Please sign in to comment.