-
- Downloads
Added code for defining SHA attributes
These attributes are stored in binary in the database, but exposed as strings. This allows one to query/create data using plain SHA1 hashes as Strings, while storing them more efficiently as binary.
Showing
- app/models/concerns/sha_attribute.rb 18 additions, 0 deletionsapp/models/concerns/sha_attribute.rb
- doc/development/README.md 1 addition, 0 deletionsdoc/development/README.md
- doc/development/sha1_as_binary.md 36 additions, 0 deletionsdoc/development/sha1_as_binary.md
- lib/gitlab/database/sha_attribute.rb 34 additions, 0 deletionslib/gitlab/database/sha_attribute.rb
- spec/lib/gitlab/database/sha_attribute_spec.rb 33 additions, 0 deletionsspec/lib/gitlab/database/sha_attribute_spec.rb
- spec/models/concerns/sha_attribute_spec.rb 27 additions, 0 deletionsspec/models/concerns/sha_attribute_spec.rb
app/models/concerns/sha_attribute.rb
0 → 100644
doc/development/sha1_as_binary.md
0 → 100644
lib/gitlab/database/sha_attribute.rb
0 → 100644
spec/models/concerns/sha_attribute_spec.rb
0 → 100644
Please register or sign in to comment