quasardb 3.14.2.dev2__cp311-cp311-win_amd64.whl → 3.14.2.dev3__cp311-cp311-win_amd64.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/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);
quasardb/qdb_api.dll CHANGED
Binary file
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
@@ -5,8 +5,8 @@ quasardb/__init__.py,sha256=20wagayMPRncEbfEbAu0y8sbMRKj-Lyc_0LB8dMdysM,4670
5
5
  quasardb/batch_column.hpp,sha256=RrFVpLVrzSLmmqy6FTNyilwRpOz8vhpAEDobnRGP-vo,3388
6
6
  quasardb/batch_inserter.hpp,sha256=qoxVvfpEL4UmOpvFAC2kVWLyhuJ311nXAbQnThu2Rhg,9803
7
7
  quasardb/blob.hpp,sha256=kHt1UTVkaZkyHBiqJ28bGzqKFn0f5PA-XyDKfgY1_Rs,5846
8
- quasardb/cluster.cpp,sha256=3uxAM6dRRbza6R2ZmgvXxhVeGgAAVsJgcR-jKh9Zngg,2666
9
- quasardb/cluster.hpp,sha256=YNZEPItSTuLrxdsZCw2XAPX4HgOT3cFJfg2P9PTl7Kk,20937
8
+ quasardb/cluster.cpp,sha256=XqQZDNsvDgM5zXwMm4i_92SGBsdRJhKRqVksJYWQ7RM,2824
9
+ quasardb/cluster.hpp,sha256=n1rHGPHzAE3Q7pWwSyER0iCQjenjhM_6fM4sefAqFAM,21183
10
10
  quasardb/cmake_install.cmake,sha256=G8Y_iKX4PLr8MpzR15pEs7SezF5o4qgYqFXAYf2b70I,1503
11
11
  quasardb/concepts.hpp,sha256=qpG1Y72n4kJSWo5FBBDWOoAgLuRbRkiacSOLOiSH1hE,11333
12
12
  quasardb/continuous.cpp,sha256=1v8dq8w0CsiVUh_5QYk8pnNap7zzaa38W62lS4D_6AY,6437
@@ -30,7 +30,7 @@ quasardb/metrics.cpp,sha256=NuEBVYlIHQRgmPy4g9Eosq1Q28Z1jySSZHKDAMLURIA,2942
30
30
  quasardb/metrics.hpp,sha256=xcotK6Jer53joky9gZHos0i_nhVB4GEjZ9F7lwq7iuc,3533
31
31
  quasardb/module.cpp,sha256=t4VrelZCR25Kr0p4aucWVMqmoqN477d3XeUh_DNlA08,2761
32
32
  quasardb/module.hpp,sha256=-zRcQ_lgVz4IEP3tokX4AeA33DYJ3jsq8vWX6OnE0Ic,604
33
- quasardb/node.hpp,sha256=np3UoaFpbf7lQ4niudzftcldpdD8KtNGCBcs4xoMRgA,4771
33
+ quasardb/node.hpp,sha256=Wj3weOriUieQvIX6wSH5TijXVyCKz5VhkyV1UA1IJOQ,5120
34
34
  quasardb/numpy.cpp,sha256=0brRs6lnIpsCNvpu3twIcjizy3lMOvCBT0O4rjKAn0I,189
35
35
  quasardb/numpy.hpp,sha256=CBmKbI2TdoxNYcJnfQAUwBfbKq1Enf3pISyv1pfUgFE,15668
36
36
  quasardb/object_tracker.hpp,sha256=vNfYAqNIoTbRI_Re9J_uKPq5E6rZIR3xfGuS7HMNt44,7646
@@ -40,8 +40,8 @@ quasardb/pool.py,sha256=lqVZPFejmNHU7EdyeoPkl7yy_-N3BRyuLhNTzIdtg8g,8743
40
40
  quasardb/properties.cpp,sha256=TT9xLvt7IukD59afRmotCp7sGEJnATRd6JbNWiYaKXY,985
41
41
  quasardb/properties.hpp,sha256=krmoLE4a0EfzayCWr3_Dr72ZEVEQxo4OzvsxgzwYBjc,2843
42
42
  quasardb/pytypes.hpp,sha256=wQKTfIk1xdUt1xkq8oi-LNpYzF4RKAx0LjY9WjD2nu0,6894
43
- quasardb/qdb_api.dll,sha256=u6BJ1uwAX2VL98stEfDfTJDDtJxmDYuBlmh-BhmvNzw,19383808
44
- quasardb/quasardb.cp311-win_amd64.pyd,sha256=HsSyUGtrWQNkNP2g7avnlZF6SqXiBsRa_IbOZ02aapo,1363968
43
+ quasardb/qdb_api.dll,sha256=jmTsFjV0aAT-hrOt0WNqa7lqmHW80Fv5S-0bFvLqp-E,18250240
44
+ quasardb/quasardb.cp311-win_amd64.pyd,sha256=x-s1CzQ7p_Pl-xJe2C_WwebD7U-jwBqLJfLbDDkGTAQ,1366016
45
45
  quasardb/query.cpp,sha256=IWU7oQLIvdI4tydmwlc_3zNhng4OdKXBNcO0qtqa1Dg,12752
46
46
  quasardb/query.hpp,sha256=lb-NXbLD-L1f4XYDQ67WlthaMrzg0miLFw-nEQCnlUk,3357
47
47
  quasardb/reader.cpp,sha256=OjCK0gSGw2O0HK5pc1GXg4zWGn-5IXDMwvOT1EYchZo,11044
@@ -117,8 +117,8 @@ quasardb/utils/ostream.hpp,sha256=KYFwqXuZoxuZblHUM-z5xrd74P2Y5zWJqVpaQ9oedAo,39
117
117
  quasardb/utils/permutation.hpp,sha256=BwJzgZmpS4G-oS7249GvnUFj_cmqSAbF2Fzb8wuihLo,1552
118
118
  quasardb/utils/stable_sort.hpp,sha256=luIK9T76mT0NyDxpLxXjTt1eSSKEOY29jRANJNysJCo,489
119
119
  quasardb/utils/unzip_view.hpp,sha256=nn6BSAI_cGsKgBh8WXhAUJ6Zzn3N0AnhtE6ePmhPeQM,2476
120
- quasardb-3.14.2.dev2.dist-info/LICENSE.md,sha256=0iT1ltzDof6cJr8mSX2PVOGhKjISfCrOYzJg7rG2pOs,1477
121
- quasardb-3.14.2.dev2.dist-info/METADATA,sha256=UZJtOvIuV8w2qSVqRgvMWwIZPHS0YvStvMRDVcHK2jA,1453
122
- quasardb-3.14.2.dev2.dist-info/WHEEL,sha256=yEpuRje-u1Z_HrXQj-UTAfIAegW_HcP2GJ7Ek8BJkUM,102
123
- quasardb-3.14.2.dev2.dist-info/top_level.txt,sha256=wlprix4hCywuF1PkgKWYdZeJKq_kgJOqkAvukm_sZQ8,9
124
- quasardb-3.14.2.dev2.dist-info/RECORD,,
120
+ quasardb-3.14.2.dev3.dist-info/LICENSE.md,sha256=0iT1ltzDof6cJr8mSX2PVOGhKjISfCrOYzJg7rG2pOs,1477
121
+ quasardb-3.14.2.dev3.dist-info/METADATA,sha256=PM1RJWVqK0ZXj-XXTlIZ7gYm01RLCuHpJCR7fmcN6uk,1453
122
+ quasardb-3.14.2.dev3.dist-info/WHEEL,sha256=yEpuRje-u1Z_HrXQj-UTAfIAegW_HcP2GJ7Ek8BJkUM,102
123
+ quasardb-3.14.2.dev3.dist-info/top_level.txt,sha256=wlprix4hCywuF1PkgKWYdZeJKq_kgJOqkAvukm_sZQ8,9
124
+ quasardb-3.14.2.dev3.dist-info/RECORD,,