nuql 0.0.9__py3-none-any.whl → 0.0.10__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.
nuql/client.py CHANGED
@@ -35,10 +35,14 @@ class Nuql:
35
35
  if custom_fields is None:
36
36
  custom_fields = []
37
37
 
38
+ if not isinstance(global_fields, dict):
39
+ global_fields = {}
40
+
41
+ global_fields['nuql:type'] = {'type': 'string'}
42
+
38
43
  # Insert global fields on to all tables
39
- if isinstance(global_fields, dict):
40
- for table_name in list(schema.keys()):
41
- schema[table_name].update(global_fields)
44
+ for table_name in list(schema.keys()):
45
+ schema[table_name].update(global_fields)
42
46
 
43
47
  self.connection = Connection(name, session)
44
48
  self.fields = custom_fields
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nuql
3
- Version: 0.0.9
3
+ Version: 0.0.10
4
4
  Summary: Nuql (pronounced 'nuckle') is a lightweight DynamoDB library for implementing the single table model pattern.
5
5
  License: MIT License
6
6
 
7
- Copyright (c) 2025, Github:lukeshortland
7
+ Copyright (c) 2025, Github:bdo-digital-nz
8
8
 
9
9
  Permission is hereby granted, free of charge, to any person obtaining a copy
10
10
  of this software and associated documentation files (the "Software"), to deal
@@ -1,5 +1,5 @@
1
1
  nuql/__init__.py,sha256=IjH6hvOvMlqYwZUk7n2x0wy0XWUtZo0cwADTlv9VW-A,77
2
- nuql/client.py,sha256=j_A-n2ldJ9I-Qk5NNzprf5hW-Z9gZZsw_hcUXr4ksxg,3105
2
+ nuql/client.py,sha256=Pt2ffjR9CbPA8ZXVYJ_9B9Iy2FIrOCSCX52ED5VJsL0,3194
3
3
  nuql/connection.py,sha256=6PusMgUwPoOT8X0CqWLKdgsdvdAEwmb_dfelz0WpJE8,1471
4
4
  nuql/exceptions.py,sha256=1dhtHoLJZyP-njCPC2hNTK48tSllbGV7amlwq3tJQps,2044
5
5
  nuql/api/__init__.py,sha256=DKxuIAjckS1vjMIPykbI3h81HszlBB9LdwQuFf53-wo,324
@@ -60,7 +60,7 @@ nuql/types/__init__.py,sha256=Ea4KR4mUs1RNUEskKF9sXfGpoQw2V9cnIYeE20wkChs,76
60
60
  nuql/types/config.py,sha256=lFfPPe62l4DkfLXR8ecw5AiSRAFzsTYy_3a0d_1M7hY,659
61
61
  nuql/types/fields.py,sha256=LjGgXM84WO54gRDkgvnwF3pjFvFxErdGYOvs0BskF_o,883
62
62
  nuql/types/serialisation.py,sha256=XAy_gARcwYmfEuxWAJox2ClWK9ow0F5WXKVbMUVBq9w,242
63
- nuql-0.0.9.dist-info/METADATA,sha256=YsBKPqCTNBbd3p7hMrZPkHz_l1KyW6C5YEJWi7BLNYM,1667
64
- nuql-0.0.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
65
- nuql-0.0.9.dist-info/licenses/LICENSE,sha256=AS8DF6oGYsvk781m40Nec9eCkj_S_oUVAWaFakB2LMs,1097
66
- nuql-0.0.9.dist-info/RECORD,,
63
+ nuql-0.0.10.dist-info/METADATA,sha256=gPFXDVgSh1P7i9NWhZwYWllDGGTgSJqoUN8DOXFrn-Y,1669
64
+ nuql-0.0.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
65
+ nuql-0.0.10.dist-info/licenses/LICENSE,sha256=zwcsoiZ1Rr_E8q6iVVgiLlyBpfNuShtrGDlRlWJXqVE,1100
66
+ nuql-0.0.10.dist-info/RECORD,,
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025, Github:lukeshortland
3
+ Copyright (c) 2025, Github:bdo-digital-nz
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
21
+ SOFTWARE.
File without changes