Skip to content

Commit fad244f

Browse files
committed
Merge pull request #109 from tvincentNuoDB/master
Updated to protocol
2 parents 661ea78 + fd3ed55 commit fad244f

File tree

5 files changed

+267
-82
lines changed

5 files changed

+267
-82
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ notifications:
1515
1616
1717
18+
19+
1820

1921
before_install:
2022
- wget http://download.nuohub.org/nuodb_${NUOVERSION}_amd64.deb --output-document=/var/tmp/nuodb.deb

pynuodb/connection.py

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ def connect(database, host, user, password, options=None):
3131
Some common options include:
3232
"schema"
3333
34-
@type database str
35-
@type host str
36-
@type user str
37-
@type password str
38-
@type options dict[str,str]
34+
:type database: str
35+
:type host: str
36+
:type user: str
37+
:type password: str
38+
:type options: dict[str,str]
3939
"""
4040
return Connection(database, host, user, password, options)
4141

@@ -78,11 +78,11 @@ def __init__(self, dbName, broker, username, password, options):
7878
Returns:
7979
a Connection instance
8080
81-
@type dbName str
82-
@type broker str
83-
@type username str
84-
@type password str
85-
@type options dict[str,str]
81+
:type dbName: str
82+
:type broker: str
83+
:type username: str
84+
:type password: str
85+
:type options: dict[str,str]
8686
"""
8787
(host, port) = getCloudEntry(broker, dbName)
8888
self.__session = EncodedSession(host, port)
@@ -114,11 +114,7 @@ def testConnection(self):
114114
name: ONE
115115
value: 1
116116
117-
Arguments:
118-
None
119-
120-
Returns:
121-
None
117+
:rtype: None
122118
"""
123119
self.__session.test_connection()
124120

pynuodb/datatype.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ def __cmp__(self, other):
117117
"bigint":NUMBER,
118118
"float":NUMBER,
119119
"double":NUMBER,
120+
"decimal":NUMBER,
121+
"double precision":NUMBER,
120122
"date":DATETIME,
121123
"timestamp":DATETIME,
122124
"time":DATETIME,

0 commit comments

Comments
 (0)