<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "CKToolJS",
  "identifier" : "/documentation/CKToolJS/CKToolDatabaseModule",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "CKTool JS"
    ],
    "preciseIdentifier" : "cl/CKToolDatabaseModule"
  },
  "title" : "CKToolDatabaseModule"
}
-->

# CKToolDatabaseModule

The imported package that provides access to CloudKit containers and databases.

```
interface CKToolDatabaseModule
```

## Overview

This is the import of all exported content from the `@apple/cktool.database` package.

To access members of `CKToolDatabaseModule` import the `@apple/cktool.database` package the following way:

```javascript
import * as CKToolDatabaseModule from "@apple/cktool.database";
// Example usage
const result = CKToolDatabaseModule.toByte(123);
```

Alternatively, you can import the package symbols directly:

```javascript
import { toByte } from "@apple/cktool.database";
// Example usage
const result = toByte(123);
```

Importing package symbols this way supports tree-shaking.

## Topics

### Instance Methods

[`static Uuid createUuid();`](/documentation/CKToolJS/CKToolDatabaseModule/createUuid)

Creates a new `Uuid`.

[`static Base64String toBase64String();`](/documentation/CKToolJS/CKToolDatabaseModule/toBase64String)

Converts a regular string to a `Base64String`.

[`static Byte toByte();`](/documentation/CKToolJS/CKToolDatabaseModule/toByte)

Converts a numeric value to a `Byte`.

[`static ByteArray toByteArray();`](/documentation/CKToolJS/CKToolDatabaseModule/toByteArray)

Converts a numeric array to a `ByteArray`.

[`static Double toDouble();`](/documentation/CKToolJS/CKToolDatabaseModule/toDouble)

Converts a number or numeric string to a `Double`.

[`static Float toFloat();`](/documentation/CKToolJS/CKToolDatabaseModule/toFloat)

Converts a number or numeric string to a `Float`.

[`static Int32 toInt32();`](/documentation/CKToolJS/CKToolDatabaseModule/toInt32)

Converts a number to an `Int32`.

[`static Int64 toInt64();`](/documentation/CKToolJS/CKToolDatabaseModule/toInt64)

Converts a number or numeric string to a `Int64`.

[`static number toNumber();`](/documentation/CKToolJS/CKToolDatabaseModule/toNumber)

Converts a supported numeric type to a JavaScript number.

[`static Uuid toUuid();`](/documentation/CKToolJS/CKToolDatabaseModule/toUuid)

Converts a string to a `Uuid`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)