PyStellarDB 1.0__py2.py3-none-any.whl → 1.0.1__py2.py3-none-any.whl

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
@@ -0,0 +1,14 @@
1
+ pystellardb/__init__.py,sha256=LHYhg_z_zEX3YLetkbxcZrlJDjQYN5jS9W7RlUck7Wg,285
2
+ pystellardb/_version.py,sha256=uxzIoeRP2HyChaMwD_W_7mP1ayFAvGUeQ9xJZbGP8MQ,497
3
+ pystellardb/graph_types.py,sha256=XbtPebhaRV7OimW-GxFJGSOcp-OnzWrlIe9M7Xv3sbU,14032
4
+ pystellardb/sasl_compat.py,sha256=HLS5PC2T4-E9FCknFZDVGSRpGdrOnKgrrHeJNMtGNPU,1322
5
+ pystellardb/stellar_hive.py,sha256=-6sAQtWbAPhMFUetBAAjkrIqImCYs8hpUvDmCTfdk7I,14964
6
+ pystellardb/stellar_rdd.py,sha256=TYwsWYeCxfOliGq1kV3ArNXdye55cKWZF7s9M9nDdt4,1324
7
+ pystellardb/v2/__init__.py,sha256=12jK5F3bAmNnvxUpoUhgSY4laBfiNiU2GQVM_PkZ8hA,142
8
+ pystellardb/v2/connection.py,sha256=efv1hEvH7VibmsOVQgA-wCOJgK1fEsYVDzLzlx4VwXY,10884
9
+ pystellardb/v2/database.py,sha256=kFDE3xclAShfVGl3ZzA34G7eDC9bHxF9atpnV0S7_Sg,3078
10
+ PyStellarDB-1.0.1.dist-info/LICENSE,sha256=1qDFxrywejs7xNBfOr6T-7lOuqDgSNIES77kTYege3w,560
11
+ PyStellarDB-1.0.1.dist-info/METADATA,sha256=qzsUt6CdBCyl-t3OT_9mlga23nHxM9baRj6iAz3qWAc,11223
12
+ PyStellarDB-1.0.1.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
13
+ PyStellarDB-1.0.1.dist-info/top_level.txt,sha256=DRk-SeGVCdVAzv2CwFmdu75Yo7DgjUA3Hpu-9l8qPuU,12
14
+ PyStellarDB-1.0.1.dist-info/RECORD,,
pystellardb/_version.py CHANGED
@@ -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}')
@@ -1,14 +0,0 @@
1
- pystellardb/__init__.py,sha256=LHYhg_z_zEX3YLetkbxcZrlJDjQYN5jS9W7RlUck7Wg,285
2
- pystellardb/_version.py,sha256=bsy7XZ8ffg4i9t7-lI7_arjuL7Y5XBvn7aTm4u1Dirw,495
3
- pystellardb/graph_types.py,sha256=XbtPebhaRV7OimW-GxFJGSOcp-OnzWrlIe9M7Xv3sbU,14032
4
- pystellardb/sasl_compat.py,sha256=HLS5PC2T4-E9FCknFZDVGSRpGdrOnKgrrHeJNMtGNPU,1322
5
- pystellardb/stellar_hive.py,sha256=-6sAQtWbAPhMFUetBAAjkrIqImCYs8hpUvDmCTfdk7I,14964
6
- pystellardb/stellar_rdd.py,sha256=TYwsWYeCxfOliGq1kV3ArNXdye55cKWZF7s9M9nDdt4,1324
7
- pystellardb/v2/__init__.py,sha256=12jK5F3bAmNnvxUpoUhgSY4laBfiNiU2GQVM_PkZ8hA,142
8
- pystellardb/v2/connection.py,sha256=Ma1AXo70QNuoaeJkL-D5rAQCV79knfWFFmpi3Ej2aCE,10762
9
- pystellardb/v2/database.py,sha256=iI0XF5sgyPiRXeXDJOJsfYrC5K46671k3liWotL-7HA,3147
10
- PyStellarDB-1.0.dist-info/LICENSE,sha256=1qDFxrywejs7xNBfOr6T-7lOuqDgSNIES77kTYege3w,560
11
- PyStellarDB-1.0.dist-info/METADATA,sha256=1MDEIEp7fmQKO6vLN3x071v2lB_uH2rIrzxoWXkoAWA,11221
12
- PyStellarDB-1.0.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
13
- PyStellarDB-1.0.dist-info/top_level.txt,sha256=DRk-SeGVCdVAzv2CwFmdu75Yo7DgjUA3Hpu-9l8qPuU,12
14
- PyStellarDB-1.0.dist-info/RECORD,,