UNPKG

appwrite-utils-cli

Version:

Appwrite Utility Functions to help with database management, data conversion, data import, migrations, and much more. Meant to be used as a CLI tool, I do not recommend installing this in frontend environments.

18 lines (17 loc) 964 B
import { type Databases, type Models } from "node-appwrite"; import { type Attribute, type CollectionCreate } from "appwrite-utils"; export declare const attributesSame: (databaseAttribute: Attribute, configAttribute: Attribute) => boolean; export declare const createOrUpdateAttribute: (db: Databases, dbId: string, collection: Models.Collection, attribute: Attribute, options?: { updateEnabled?: boolean; useQueue?: boolean; verbose?: boolean; }) => Promise<void>; export declare const createUpdateCollectionAttributes: (db: Databases, dbId: string, collection: Models.Collection, collectionConfig: CollectionCreate, options?: { updateEnabled?: boolean; useQueue?: boolean; verbose?: boolean; }) => Promise<void>; export declare const deleteObsoleteAttributes: (db: Databases, dbId: string, collection: Models.Collection, collectionConfig: CollectionCreate, options?: { useQueue?: boolean; verbose?: boolean; }) => Promise<void>;