PyStellarDB 1.0__tar.gz → 1.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: PyStellarDB
3
- Version: 1.0
3
+ Version: 1.0.1
4
4
  Summary: Python interface to StellarDB
5
5
  Home-page: https://github.com/WarpCloud/PyStellarDB
6
6
  Author: Zhiping Wang
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: PyStellarDB
3
- Version: 1.0
3
+ Version: 1.0.1
4
4
  Summary: Python interface to StellarDB
5
5
  Home-page: https://github.com/WarpCloud/PyStellarDB
6
6
  Author: Zhiping Wang
@@ -8,11 +8,11 @@ import json
8
8
 
9
9
  version_json = '''
10
10
  {
11
- "date": "2025-05-06T17:47:56+0800",
11
+ "date": "2025-05-09T14:21:46+0800",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "76d9b0b752e5e453e3046d5864750c4e3ad85b36",
15
- "version": "1.0"
14
+ "full-revisionid": "cb3d2089095c1d91d4236dd741c15474a1b32034",
15
+ "version": "1.0.1"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
@@ -238,6 +238,7 @@ class Connection(object):
238
238
  assert response.serverProtocolVersion == protocol_version, \
239
239
  "Unable to handle protocol version {}".format(response.serverProtocolVersion)
240
240
 
241
+ self.__init__connection()
241
242
  except:
242
243
  self._transport.close()
243
244
  raise
@@ -250,6 +251,9 @@ class Connection(object):
250
251
  """Call close"""
251
252
  self.close()
252
253
 
254
+ def __init__connection(self):
255
+ self.execute("config query.lang cypher")
256
+
253
257
  @property
254
258
  def client(self):
255
259
  return self._client
@@ -43,8 +43,6 @@ class Graph(object):
43
43
  Initialize the connection to the database.
44
44
  """
45
45
 
46
- self.connection.execute('config query.lang cypher')
47
-
48
46
  """Try to bind cursor with graph name."""
49
47
  try:
50
48
  self.connection.execute(f'use graph {self.graph_name}')
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes