Skip to contents

Reads the current base schema via air_meta() and upserts it into a designated table within the same base. Run this once to initialise the metadata store, then edit the table in Airtable and call air_meta_sync() to push changes back.

Usage

air_meta_init(base_id, meta_table = "_metadata", .token = NULL)

Arguments

base_id

Base ID (e.g., "appXXXXXX"). If NULL, uses the session default set by air_set_base() or the AIRTABLE_BASE_ID environment variable.

meta_table

Name of the table to store metadata in. Default "_metadata".

.token

Personal access token (resolved via air_token() if NULL).

Value

Invisible upsert result.

Examples

if (FALSE) { # \dontrun{
# Initialise the _metadata table
air_meta_init("appXXXXXX")

# Use a custom table name
air_meta_init("appXXXXXX", meta_table = "_docs")
} # }