Table: googleworkspace_calendar_my_event - Query Google Workspace Calendar Events using SQL
Google Workspace Calendar is a core service within Google Workspace that allows users to schedule events, invite people, and customize their calendars to suit their needs. It provides a centralized way to manage schedules, meetings, and appointments, helping users stay organized and informed about their upcoming events. Google Workspace Calendar helps you stay updated about your schedule and take necessary actions when needed.
Table Usage Guide
The googleworkspace_calendar_my_event
table provides insights into Google Workspace Calendar Events. As an administrator or a user, explore event-specific details through this table, including event start and end times, attendees, and event status. Utilize it to uncover information about your events, such as those with conflicting schedules, attendees' responses to event invitations, and details about recurring events.
Examples
Basic info
Gain insights into upcoming events from your Google Workspace Calendar. This query allows you to plan and prioritize by providing a snapshot of the next 10 events, including their summaries and associated hangout links.
select summary, hangout_link, start_time, end_timefrom googleworkspace_calendar_my_eventorder by start_timelimit 10;
select summary, hangout_link, start_time, end_timefrom googleworkspace_calendar_my_eventorder by start_timelimit 10;
List events scheduled for tomorrow
Gain insights into your upcoming events by pinpointing the specific ones scheduled for tomorrow, allowing for effective planning and time management.
select summary, hangout_link, start_time, end_timefrom googleworkspace_calendar_my_eventwhere start_time >= (current_date + interval '1 day') and start_time < (current_date + interval '2 days')order by start_time;
select summary, hangout_link, start_time, end_timefrom googleworkspace_calendar_my_eventwhere start_time >= date('now', '+1 day') and start_time < date('now', '+2 day')order by start_time;
List events scheduled in next 4 days
Discover the segments that have events scheduled in the coming four days. This is useful for planning and managing your schedule effectively.
select summary, hangout_link, start_time, end_timefrom googleworkspace_calendar_my_eventwhere start_time >= current_date and start_time <= (current_date + interval '4 days')order by start_time;
select summary, hangout_link, start_time, end_timefrom googleworkspace_calendar_my_eventwhere start_time >= date('now') and start_time <= date('now', '+4 days')order by start_time;
List events scheduled in current month
Explore which events are scheduled for the current month to manage your time and plan accordingly. This allows you to gain insights into your schedule, helping to avoid clashes and ensure efficient time management.
select summary, hangout_link, start_time, end_timefrom googleworkspace_calendar_my_eventwhere start_time >= date_trunc('month', current_date) and start_time <= date_trunc('month', current_date) + interval '1 month'order by start_time;
select summary, hangout_link, start_time, end_timefrom googleworkspace_calendar_my_eventwhere start_time >= date('now', 'start of month') and start_time <= date('now', 'start of month', '+1 month')order by start_time;
List events scheduled in current week
Explore the schedule for the current week to understand your upcoming commitments and plan accordingly. This helps in efficiently managing your time by gaining insights into the events lined up for the week.
select summary, hangout_link, start_time, end_timefrom googleworkspace_calendar_my_eventwhere start_time >= date_trunc('week', current_date) and start_time < (date_trunc('week', current_date) + interval '7 days')order by start_time;
select summary, hangout_link, start_time, end_timefrom googleworkspace_calendar_my_eventwhere start_time >= date('now', 'weekday 0', '-7 days') and start_time < date('now', 'weekday 0')order by start_time;
List upcoming events scheduled on every Tuesday and Thursday
Discover the segments that have upcoming events scheduled on Tuesdays and Thursdays. This is useful for planning and organizing your week ahead with a focus on those specific days.
select summary, hangout_link, start_time, end_time, dayfrom googleworkspace_calendar_my_eventwhere extract( dow from start_time ) in (2, 4) and start_time >= current_dateorder by start_timelimit 10;
select summary, hangout_link, start_time, end_time, dayfrom googleworkspace_calendar_my_eventwhere strftime('%w', start_time) in ('2', '4') and date(start_time) >= date('now')order by start_timelimit 10;
Schema for googleworkspace_calendar_my_event
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form, e.g. connection_name. | |
attachments | jsonb | A list of file attachments for the event. | |
attendees | jsonb | A list of attendees of the event. | |
attendees_omitted | boolean | Indicates whether attendees may have been omitted from the event's representation, or not. | |
calendar_id | text | Identifier of the calendar. | |
color_id | text | The color of the event. | |
conference_data | jsonb | The conference-related information, such as details of a Google Meet conference. | |
created_at | timestamp with time zone | Creation time of the event. | |
creator | jsonb | Specifies the creator details of the event. | |
day | text | Specifies the day of a week. | |
description | text | A short user-defined description of the event. | |
end_time | timestamp with time zone | Specifies the event end time. | |
end_time_unspecified | boolean | Indicates whether the end time is actually unspecified, or not. | |
etag | text | ETag of the resource. | |
event_type | text | Specifies the type of the event. | |
extended_properties | jsonb | A list of extended properties of the event. | |
guests_can_invite_others | boolean | Indicates whether attendees other than the organizer can invite others to the event, or not. | |
guests_can_modify | boolean | Indicates whether attendees other than the organizer can modify the event, or not. | |
guests_can_see_other_guests | boolean | Indicates whether attendees other than the organizer can modify the event, or not. | |
hangout_link | text | An absolute link to the Google Hangout associated with this event. | |
html_link | text | An absolute link to this event in the Google Calendar Web UI. | |
ical_uid | text | Specifies the event unique identifier as defined in RFC5545. It is used to uniquely identify events accross calendaring systems and must be supplied when importing events via the import method. | |
id | text | Opaque identifier of the event. | |
location | text | Geographic location of the event as free-form text. | |
locked | boolean | Indicates whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". | |
organizer | jsonb | Specifies the organizer details of the event. | |
original_start_time | jsonb | For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. | |
private_copy | boolean | Indicates whether event propagation is disabled, or not. | |
query | text | = | Filter string to filter events. |
recurrence | jsonb | A list of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545. | |
recurring_event_id | text | For an instance of a recurring event, this is the id of the recurring event to which this instance belongs. | |
reminders | jsonb | Information about the event's reminders for the authenticated user. | |
sequence | bigint | Sequence number as per iCalendar. | |
source | jsonb | Source from which the event was created. | |
start_time | timestamp with time zone | >, >=, =, <, <= | Specifies the event start time. |
status | text | Status of the event. | |
summary | text | Specifies the title of the event. | |
timezone | text | The time zone of the calendar. | |
transparency | text | Indicates whether the event blocks time on the calendar. | |
updated_at | timestamp with time zone | Last modification time of the event. | |
visibility | text | Visibility of the event. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- googleworkspace
You can pass the configuration to the command with the --config
argument:
steampipe_export_googleworkspace --config '<your_config>' googleworkspace_calendar_my_event