quasardb 3.14.2.dev2__cp39-cp39-macosx_11_0_arm64.whl → 3.14.2.dev3__cp39-cp39-macosx_11_0_arm64.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.

Potentially problematic release.


This version of quasardb might be problematic. Click here for more details.

quasardb/cluster.cpp CHANGED
@@ -14,6 +14,7 @@ cluster::cluster(const std::string & uri,
14
14
  const std::string & cluster_public_key_file,
15
15
  std::chrono::milliseconds timeout,
16
16
  bool do_version_check,
17
+ bool enable_encryption,
17
18
  std::size_t client_max_parallelism)
18
19
  : _uri{uri}
19
20
  , _handle{make_handle_ptr()}
@@ -37,6 +38,12 @@ cluster::cluster(const std::string & uri,
37
38
  options().set_client_max_parallelism(client_max_parallelism);
38
39
  }
39
40
 
41
+ if (enable_encryption == true)
42
+ {
43
+ options().set_encryption(qdb_crypt_aes_gcm_256);
44
+ }
45
+
46
+
40
47
  // HACKS(leon): we need to ensure there is always one callback active
41
48
  // for qdb. Callbacks can be lost when the last active session
42
49
  // gets closed. As such, the most pragmatic place to 'check'
quasardb/cluster.hpp CHANGED
@@ -74,6 +74,7 @@ public:
74
74
  const std::string & cluster_public_key_file = {},
75
75
  std::chrono::milliseconds timeout = std::chrono::minutes{1},
76
76
  bool do_version_check = false,
77
+ bool enable_encryption = false,
77
78
  std::size_t client_max_parallelism = 0);
78
79
 
79
80
  public:
@@ -515,15 +516,17 @@ static inline void register_cluster(Module & m)
515
516
  "Represents a connection to the QuasarDB cluster. ") //
516
517
  .def(py::init<const std::string &, const std::string &, const std::string &,
517
518
  const std::string &, const std::string &, const std::string &,
518
- std::chrono::milliseconds, bool, std::size_t>(), //
519
+ std::chrono::milliseconds, bool, bool, std::size_t>(), //
519
520
  py::arg("uri"), //
520
521
  py::arg("user_name") = std::string{}, //
521
522
  py::arg("user_private_key") = std::string{}, //
522
523
  py::arg("cluster_public_key") = std::string{}, //
524
+ py::kw_only(), //
523
525
  py::arg("user_security_file") = std::string{}, //
524
526
  py::arg("cluster_public_key_file") = std::string{}, //
525
527
  py::arg("timeout") = std::chrono::minutes{1}, //
526
528
  py::arg("do_version_check") = false, //
529
+ py::arg("enable_encryption") = false, //
527
530
  py::arg("client_max_parallelism") = std::size_t{0} //
528
531
  ) //
529
532
  .def("__enter__", &qdb::cluster::enter) //
quasardb/libqdb_api.dylib CHANGED
Binary file
quasardb/node.hpp CHANGED
@@ -51,13 +51,19 @@ public:
51
51
  const std::string & user_private_key = {},
52
52
  const std::string & cluster_public_key = {},
53
53
  const std::string & user_security_file = {},
54
- const std::string & cluster_public_key_file = {})
54
+ const std::string & cluster_public_key_file = {},
55
+ bool enable_encryption = false)
55
56
  : _uri{node_uri}
56
57
  , _handle{make_handle_ptr()}
57
58
  , _direct_handle{make_direct_handle_ptr()}
58
59
  {
59
60
  qdb::options{_handle}.apply_credentials(user_name, user_private_key, cluster_public_key,
60
61
  user_security_file, cluster_public_key_file);
62
+
63
+ if (enable_encryption) {
64
+ qdb::options{_handle}.set_encryption(qdb_crypt_aes_gcm_256);
65
+ }
66
+
61
67
  _direct_handle->connect(_handle, node_uri);
62
68
  }
63
69
 
@@ -108,13 +114,16 @@ static inline void register_node(Module & m)
108
114
 
109
115
  py::class_<qdb::node>(m, "Node")
110
116
  .def(py::init<std::string const &, std::string const &, std::string const &, std::string const &,
111
- std::string const &, std::string const &>(),
112
- py::arg("uri"), //
113
- py::arg("user_name") = std::string{}, //
114
- py::arg("user_private_key") = std::string{}, //
115
- py::arg("cluster_public_key") = std::string{}, //
116
- py::arg("user_security_file") = std::string{}, //
117
- py::arg("cluster_public_key_file") = std::string{}) //
117
+ std::string const &, std::string const &, bool>(),
118
+ py::arg("uri"), //
119
+ py::arg("user_name") = std::string{}, //
120
+ py::arg("user_private_key") = std::string{}, //
121
+ py::arg("cluster_public_key") = std::string{}, //
122
+ py::kw_only(), //
123
+ py::arg("user_security_file") = std::string{}, //
124
+ py::arg("cluster_public_key_file") = std::string{}, //
125
+ py::arg("enable_encryption") = false //
126
+ ) //
118
127
  .def("prefix_get", &qdb::node::prefix_get)
119
128
  .def("blob", &qdb::node::blob)
120
129
  .def("integer", &qdb::node::integer);
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: quasardb
3
- Version: 3.14.2.dev2
3
+ Version: 3.14.2.dev3
4
4
  Summary: Python API for quasardb
5
5
  Home-page: https://www.quasardb.net/
6
6
  Author: quasardb SAS
@@ -4,8 +4,8 @@ quasardb/__init__.py,sha256=bUq3IUkC13rfB4SIGIScDevSJ1jwB3oJbuBZVPfKt1Q,4547
4
4
  quasardb/batch_column.hpp,sha256=PuZEM78TNxyqtNm4OcuhqMTiconRDG6qdWIvKBIpO8s,3308
5
5
  quasardb/batch_inserter.hpp,sha256=QUmVPKu1ffF6Ee_9eyBG2-QDDqtF2TLAFZqxG28HL6w,9555
6
6
  quasardb/blob.hpp,sha256=YirJQeZu0sGfd-66Vc57G7DLRIU9wm_SbaA8jeXXz_8,5696
7
- quasardb/cluster.cpp,sha256=VAc7qx-mwj9oIWYq0m_kr4oZwcJxUdxzfbjkHreUCWo,2571
8
- quasardb/cluster.hpp,sha256=xxaJfL-bZlJs7qYouHxjASLB5Vzke70UcPj_zx0hWYQ,20347
7
+ quasardb/cluster.cpp,sha256=e4vbyr-iVUSlSiUVqFlvIFzzK348yyd368jSVltFdBE,2722
8
+ quasardb/cluster.hpp,sha256=C3YDGC7nrL6oBmi9rJMFNMoPhdXLAV8oNNg4EMYn-k4,20590
9
9
  quasardb/cmake_install.cmake,sha256=hXwTSChMB0Oeb4X8tSPHjcNihq1nNHKyLU9eeJ_DMpc,1670
10
10
  quasardb/concepts.hpp,sha256=W1EJFVrH0bVe74gDSsxpK3HPyFtUIgvtZrui0a5oiiI,11011
11
11
  quasardb/continuous.cpp,sha256=ZD-V-IIlqrr8NvI6AeW3JY4qc2FDh8dqxGInPvZAiOI,6238
@@ -22,7 +22,7 @@ quasardb/firehose.py,sha256=HO0GjCDg3x4cpzVSH3KZ1AJhV8lK2HJyXr9tpfnNSGI,3492
22
22
  quasardb/handle.cpp,sha256=6x7qPFvIzGNralz7MFbUtCEXi26Q2RKzNhIywoVIOKM,507
23
23
  quasardb/handle.hpp,sha256=OoaSROIDbJMrcHQr8dy5RLJCKrObg68dVUvb-eNBr0Y,2953
24
24
  quasardb/integer.hpp,sha256=od5QaIC262o_5JSk5vkbmNDUX3K7tFir1u5FmEPs8GE,3216
25
- quasardb/libqdb_api.dylib,sha256=1vVfO-6Xu37TO3Ror4c2XljAcVx4D8mtEL6XOvxAI-4,33996384
25
+ quasardb/libqdb_api.dylib,sha256=_MGxsWt7rTRBIyqzGUzsLc3Ot8wjQqN1PQQtRSKhA7Y,33885792
26
26
  quasardb/logger.cpp,sha256=UT2dGHF_sk-UIFUAOWxdse8JlcaLnnARsZDu5AP_v4E,2950
27
27
  quasardb/logger.hpp,sha256=CrQoHtAHsaovArH6kp_c4up0fVbj7lm4uPcSRnU9VKU,7050
28
28
  quasardb/masked_array.hpp,sha256=aRAnMRnlD7qAjK4MVlBJHWVuhrG_5dfxOx3cLPtR2pU,18571
@@ -30,7 +30,7 @@ quasardb/metrics.cpp,sha256=7xbg65UUQysbT8AIsnLOaVbBlwxQqB8sMzFgcOw4BMI,2839
30
30
  quasardb/metrics.hpp,sha256=8LV0XOfqH0gc_gSycZlh4u_zDMXuDX3eQRGtIEhyk9Y,3421
31
31
  quasardb/module.cpp,sha256=aCRCyRHlW5a5t0ITAqVKUKa1OI6jekk-N5xUQHMJklE,2669
32
32
  quasardb/module.hpp,sha256=NQYsuOMyTnhSufJyAFQOXiL9znXea_ch2CnDgEKm1dY,580
33
- quasardb/node.hpp,sha256=Cg8X5jp_JQnjjM47M08yQtahnelmx_agSKeLyzpiVwQ,4648
33
+ quasardb/node.hpp,sha256=0Slnx_9cJfOt_0IrQqiomIKs4AaQartRXm1m5-yJK1c,4988
34
34
  quasardb/numpy.cpp,sha256=U1lazDCBCCKRR3ubLCf5OaHbK-kLQAZz7jLlHWSr1gw,183
35
35
  quasardb/numpy.hpp,sha256=u3TXtkbjxClieDPXw55oGLXxeJStU8O-wIPW9o_4T28,15179
36
36
  quasardb/object_tracker.hpp,sha256=M1yfo68LGaJidpjYjOLgv2c54rDtfqmf2xnfZXs6S5w,7364
@@ -40,7 +40,7 @@ quasardb/pool.py,sha256=4IFwot-U8GEHo8h86264uVTWge44bOH_TUkoVy3Hjac,8449
40
40
  quasardb/properties.cpp,sha256=Zdg7zpWA7vH9CXKuKp-1l2mTGlVrXoVoYeYdZVKYTM4,944
41
41
  quasardb/properties.hpp,sha256=sJu03OFCuKcuBBpynntVlwnXZ0EpQBTd3umSk_GtX4Q,2758
42
42
  quasardb/pytypes.hpp,sha256=Y1XmY8VeC_ePLS4IpXXDX5ulfYQ9070u4as8Ke9vP-o,6673
43
- quasardb/quasardb.cpython-39-darwin.so,sha256=KfmJW5C3OeVNr1cjdNFqqRsmSKfajm0-HBcOypblbCM,917264
43
+ quasardb/quasardb.cpython-39-darwin.so,sha256=s5ybeObAp20oX8_n3T0I3mnBTW0d0Qs1025CdGX9IcI,917264
44
44
  quasardb/query.cpp,sha256=coSAZRM7WGgT6hfq5lPQF9jMde7x6x4u8Q-LRmRF9B4,12332
45
45
  quasardb/query.hpp,sha256=kKy9qUdRS_ibzEgrFYThrgViqH99-ixctl-Hv2dd-Ns,3265
46
46
  quasardb/reader.cpp,sha256=OlTCJ3uAjLo3XBLlLmq-p8aTbv2wQufMPrzkPHv56Sk,10762
@@ -108,8 +108,8 @@ quasardb/utils/ostream.hpp,sha256=oqnyxurnnbiStXuFTZEewEM_SsYzB-RdUft-q2y1JcI,37
108
108
  quasardb/utils/permutation.hpp,sha256=7iyUNZQLxUEyOliRKwoVzO9pzG_b5Id4JjAHXAy5I50,1502
109
109
  quasardb/utils/stable_sort.hpp,sha256=Z1R3mWl78_Zh4O4bxCXQJHBCd7m71G-qFRcK-ll07qc,465
110
110
  quasardb/utils/unzip_view.hpp,sha256=pkwk_BTYOm_9HOjyf6Z2W2Udc9he5EJKcIbbrYcUzok,2387
111
- quasardb-3.14.2.dev2.dist-info/LICENSE.md,sha256=_drOadIrIX8mzUZcnTJBTpUQih5gwdRAGK8ZKanYD6k,1467
112
- quasardb-3.14.2.dev2.dist-info/METADATA,sha256=VYfUewl7wVQC3z_nlU3E0y7pOP2oU8d16txeinEahhY,1418
113
- quasardb-3.14.2.dev2.dist-info/WHEEL,sha256=_exXVVrX7A7i2-EOwk1kG5BcIkGQg9kfHel4XXV7Pbs,108
114
- quasardb-3.14.2.dev2.dist-info/top_level.txt,sha256=wlprix4hCywuF1PkgKWYdZeJKq_kgJOqkAvukm_sZQ8,9
115
- quasardb-3.14.2.dev2.dist-info/RECORD,,
111
+ quasardb-3.14.2.dev3.dist-info/LICENSE.md,sha256=_drOadIrIX8mzUZcnTJBTpUQih5gwdRAGK8ZKanYD6k,1467
112
+ quasardb-3.14.2.dev3.dist-info/METADATA,sha256=MVQse6UcTn9aG8ovjjk3DmIzGlcr89Azi5UVX8YVNwg,1418
113
+ quasardb-3.14.2.dev3.dist-info/WHEEL,sha256=_exXVVrX7A7i2-EOwk1kG5BcIkGQg9kfHel4XXV7Pbs,108
114
+ quasardb-3.14.2.dev3.dist-info/top_level.txt,sha256=wlprix4hCywuF1PkgKWYdZeJKq_kgJOqkAvukm_sZQ8,9
115
+ quasardb-3.14.2.dev3.dist-info/RECORD,,