Settings
Database settings.
The settings class contains the following parameters:
db_id- Database ID.db_root- Path to root directory of database.Default = "ScrubyDB" (in root of project).HASH_REDUCE_LEFT- The length of the hash reduction on the left side.7- 16 branches in collection (is default).6- 256 branches in collection.5- 4096 branches in collection.0- 4294967296 branches in collection.
MAX_NUMBER_BRANCH- Maximum number of branches in a collection.max_workers- The maximum number of processes that can be used (default = None).plugins- For adding plugins.sys_platform- Information about the operating system.mode- Access mode to directories and files.
ScrubyConfig
¶
Database settings.
Source code in src/scruby/config.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | |
check_hash_reduce_left()
classmethod
¶
The value of the HASH_REDUCE_LEFT parameter must match the value in the .env.meta of the database.
Source code in src/scruby/config.py
init_db_id()
classmethod
¶
Initialize the db_id parameter from db_root/.env.meta.
Source code in src/scruby/config.py
init_max_number_branch()
classmethod
¶
Initialize the MAX_NUMBER_BRANCH parameter.
Get maximum number of branches.
Source code in src/scruby/config.py
init_params()
classmethod
¶
restore()
classmethod
¶
Restore default parameter values.