Provides minisql tools encryption facilities for this project.
Package: minisql.tools.encryption
Reachable from entry: yes
minisql/catalog/catalog.mlascatalog→ src/minisql/catalog/catalog.mlminisql/catalog/schema_history.mlasschema_history→ src/minisql/catalog/schema_history.mlminisql/common/uuid.mlasuuid→ src/minisql/common/uuid.mlminisql/platform/file.mlasfile_api→ src/minisql/platform/file.mlminisql/platform/lock.mlasfile_lock→ src/minisql/platform/lock.mlminisql/security/key_provider.mlaskey_provider→ src/minisql/security/key_provider.mlminisql/server/database_manager.mlasdatabase_manager→ src/minisql/server/database_manager.mlminisql/storage/paged_file.mlaspaged_file→ src/minisql/storage/paged_file.ml
function addIfExists(paths, path)Adds one existing physical artifact to a migration plan.
| Parameter | Type | Default | Description |
|---|---|---|---|
paths |
dynamic |
— | paths value consumed by this operation. |
path |
dynamic |
— | Path of the file or directory used by the operation. |
function componentName()Returns the stable component name.
function contains(values, wanted)Tests integer membership in a bounded metadata array.
| Parameter | Type | Default | Description |
|---|---|---|---|
values |
dynamic |
— | values value consumed by this operation. |
wanted |
dynamic |
— | wanted value consumed by this operation. |
function enable(databasePath, keyFilePath)Enables resumable TDE migration. Mixed plaintext/encrypted files are valid during conversion because every superblock carries its own feature bit. Enables or resumes offline TDE migration for one database.
| Parameter | Type | Default | Description |
|---|---|---|---|
databasePath |
dynamic |
— | Path associated with database. |
keyFilePath |
dynamic |
— | Path associated with key file. |
function fail(operation, message)Creates a structured encryption-administration error.
| Parameter | Type | Default | Description |
|---|---|---|---|
operation |
dynamic |
— | operation value consumed by this operation. |
message |
dynamic |
— | Human-readable message associated with the operation. |
function generateKeyFile(path)Creates a durable new raw 256-bit provider key.
| Parameter | Type | Default | Description |
|---|---|---|---|
path |
dynamic |
— | Path of the file or directory used by the operation. |
function indexIds(state)Collects unique physical index identifiers from schema constraints.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
const INVALID_ARGUMENT = 9001Defines the invalid argument constant used by the minisql tools encryption module.
function isImplemented()Returns whether implemented satisfies the condition required by the minisql tools encryption module.
function releaseMigrationLock(lockToken, lockFile)Releases the migration's process-visible database lock and owning handle.
| Parameter | Type | Default | Description |
|---|---|---|---|
lockToken |
dynamic |
— | lockToken value consumed by this operation. |
lockFile |
dynamic |
— | lockFile value consumed by this operation. |
function rotate(databasePath, newKeyFilePath)Rewraps the database DEK under a new external KEK.
| Parameter | Type | Default | Description |
|---|---|---|---|
databasePath |
dynamic |
— | Path associated with database. |
newKeyFilePath |
dynamic |
— | Path associated with new key file. |
function targetMilestone()Returns the milestone introducing this component.