Skip to content

Commit

Permalink
Create Enum class for MongoDB binary data types
Browse files Browse the repository at this point in the history
  • Loading branch information
anas-srikou committed Sep 12, 2023
1 parent 57db9e2 commit 93561bb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Enums/BinaryDataTypes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

namespace DreamFactory\Core\MongoDb\Enums;

/**
* Binary data types for MongoDB
* https://www.mongodb.com/docs/manual/reference/bson-types/#binary-data
*/
class BinaryDataTypes
{
const GENERIC = 0;
const FUNCTION_DATA = 1;
const BINARY_OLD = 2;
const UUID_OLD = 3;
const UUID = 4;
const MD5 = 5;
const ENCRYPTED_BSON_VALUE = 6;
const COMPRESSED_TIME_SERIES_DATA = 7;
const CUSTOM_DATA = 128;
}

0 comments on commit 93561bb

Please sign in to comment.