Statement Quick Reference ========================= .. list-table:: :header-rows: 1 :widths: 45 55 * - Statement - Purpose * - ``create bucket ()`` - Create a bucket; error if it already exists. * - ``create unique bucket ()`` - Create a bucket only if it does not already exist. * - ``create forced bucket ()`` - Always create the bucket, dropping any existing one. * - ``create forced unique bucket ()`` - Drop and recreate if exists; create if not. * - ``create ... bucket from csv("")`` - Create and populate a bucket from a CSV file. * - ``truncate `` - Remove all records; preserve schema. * - ``drop from `` - Permanently remove a field from the schema and all records. * - ``describe `` - Print the bucket's field schema. * - ``show buckets`` - List all buckets. * - ``insert into ()`` - Insert a single record (positional or named). * - ``insert into ([...], [...])`` - Insert multiple records in one statement. * - ``get from `` - Retrieve records, with optional projection, filtering, and ordering. * - ``get head() from `` - Retrieve the first *n* records. * - ``get tail() from `` - Retrieve the last *n* records. * - ``set () where `` - Update all matching records. * - ``delete from where `` - Delete all matching records. * - ``export to csv("")`` - Export all records to a CSV file. * - ``analyze stream()`` - Sliding-window real-time metrics. * - ``analyze timeseries`` - Trend detection, forecasting, and anomaly detection. * - ``analyze statistics`` - Comprehensive descriptive statistics. * - ``analyze correlation()`` - Pearson correlation between two fields. * - ``analyze percentile()`` - The *n*-th percentile value. * - ``analyze window(, )`` - Per-row window function (``row_number``, ``rank``, ``dense_rank``, ``percent_rank``). * - ``begin!`` - Begin an explicit transaction block. * - ``commit!`` - Commit the current transaction (explicit or implicit). * - ``rollback!`` - Roll back all changes in the current explicit transaction block. * - ``print ""`` - Write a string to standard output.