JDBC Service | Apps Script | Google for Developers (original) (raw)
Google Workspace services
Calendar
- Overview
- CalendarApp
- Classes
- Calendar
- CalendarEvent
- CalendarEventSeries
- EventGuest
- EventRecurrence
- RecurrenceRule
- Enums
- Color
- EventColor
- EventTransparency
- EventType
- GuestStatus
- Visibility
- Advanced services
- Calendar API
Docs
- Overview
- DocumentApp
- Classes
- Body
- Bookmark
- ContainerElement
- Date
- Document
- DocumentTab
- Equation
- EquationFunction
- EquationFunctionArgumentSeparator
- EquationSymbol
- FooterSection
- Footnote
- FootnoteSection
- HeaderSection
- HorizontalRule
- InlineDrawing
- InlineImage
- ListItem
- NamedRange
- PageBreak
- Paragraph
- Person
- Position
- PositionedImage
- Range
- RangeBuilder
- RangeElement
- RichLink
- Tab
- Table
- TableCell
- TableOfContents
- TableRow
- Text
- UnsupportedElement
- Interfaces
- Element
- Enums
- Attribute
- ElementType
- FontFamily
- GlyphType
- HorizontalAlignment
- ParagraphHeading
- PositionedLayout
- TabType
- TextAlignment
- VerticalAlignment
- Advanced services
- Docs API
Drive
- Overview
- DriveApp
- Classes
- File
- FileIterator
- Folder
- FolderIterator
- User
- Enums
- Access
- Permission
- Advanced services
- Drive API
- Drive Activity API
- Drive Labels API
Forms
- Overview
- FormApp
- Classes
- CheckboxGridItem
- CheckboxGridValidation
- CheckboxGridValidationBuilder
- CheckboxItem
- CheckboxValidation
- CheckboxValidationBuilder
- Choice
- DateItem
- DateTimeItem
- DurationItem
- Form
- FormResponse
- GridItem
- GridValidation
- GridValidationBuilder
- ImageItem
- ItemResponse
- ListItem
- MultipleChoiceItem
- PageBreakItem
- ParagraphTextItem
- ParagraphTextValidation
- ParagraphTextValidationBuilder
- QuizFeedback
- QuizFeedbackBuilder
- RatingItem
- ScaleItem
- SectionHeaderItem
- TextItem
- TextValidation
- TextValidationBuilder
- TimeItem
- VideoItem
- Interfaces
- Item
- Enums
- Alignment
- DestinationType
- FeedbackType
- ItemType
- PageNavigationType
- RatingIconType
Gmail
- Overview
- GmailApp
- Classes
- GmailAttachment
- GmailDraft
- GmailLabel
- GmailMessage
- GmailThread
- Advanced services
- Gmail API
Sheets
- Overview
- SpreadsheetApp
- Classes
- Banding
- BooleanCondition
- CellImage
- CellImageBuilder
- Color
- ColorBuilder
- ConditionalFormatRule
- ConditionalFormatRuleBuilder
- ContainerInfo
- DataSource for Connected Sheets
* BigQueryDataSourceSpec
* BigQueryDataSourceSpecBuilder
* DataExecutionStatus
* LookerDataSourceSpec
* LookerDataSourceSpecBuilder
* DataSource
* DataSourceChart
* DataSourceColumn
* DataSourceFormula
* DataSourceParameter
* DataSourcePivotTable
* DataSourceRefreshSchedule
* DataSourceRefreshScheduleFrequency
* DataSourceSheet
* DataSourceSheetFilter
* DataSourceSpec
* DataSourceSpecBuilder
* DataSourceTable
* DataSourceTableColumn
* DataSourceTableFilter - DataValidation
- DataValidationBuilder
- DateTimeGroupingRule
- DeveloperMetadata
- DeveloperMetadataFinder
- DeveloperMetadataLocation
- Drawing
- EmbeddedAreaChartBuilder
- EmbeddedBarChartBuilder
- EmbeddedChart
- EmbeddedChartBuilder
- EmbeddedColumnChartBuilder
- EmbeddedComboChartBuilder
- EmbeddedHistogramChartBuilder
- EmbeddedLineChartBuilder
- EmbeddedPieChartBuilder
- EmbeddedScatterChartBuilder
- EmbeddedTableChartBuilder
- Filter
- FilterCriteria
- FilterCriteriaBuilder
- GradientCondition
- Group
- NamedRange
- OverGridImage
- PageProtection
- PivotFilter
- PivotGroup
- PivotGroupLimit
- PivotTable
- PivotValue
- Protection
- Range
- RangeList
- RichTextValue
- RichTextValueBuilder
- Selection
- Sheet
- Slicer
- SortSpec
- Spreadsheet
- SpreadsheetTheme
- TextFinder
- TextRotation
- TextStyle
- TextStyleBuilder
- ThemeColor
- Enums
- AutoFillSeries
- BandingTheme
- BooleanCriteria
- BorderStyle
- CopyPasteType
- DataValidationCriteria
- DateTimeGroupingRuleType
- DeveloperMetadataLocationType
- DeveloperMetadataVisibility
- Dimension
- Direction
- FrequencyType
- GroupControlTogglePosition
- InterpolationType
- PivotTableSummarizeFunction
- PivotValueDisplayType
- ProtectionType
- RecalculationInterval
- RelativeDate
- SheetType
- SortOrder
- TextDirection
- TextToColumnsDelimiter
- ThemeColorType
- ValueType
- WrapStrategy
- Advanced services
- Sheets API
Slides
- Overview
- SlidesApp
- Classes
- AffineTransform
- AffineTransformBuilder
- AutoText
- Autofit
- Border
- Color
- ColorScheme
- ConnectionSite
- Fill
- Group
- Image
- Layout
- Line
- LineFill
- Link
- List
- ListStyle
- Master
- NotesMaster
- NotesPage
- Page
- PageBackground
- PageElement
- PageElementRange
- PageRange
- Paragraph
- ParagraphStyle
- PictureFill
- Point
- Presentation
- Selection
- Shape
- SheetsChart
- Slide
- SolidFill
- SpeakerSpotlight
- Table
- TableCell
- TableCellRange
- TableColumn
- TableRow
- TextRange
- TextStyle
- ThemeColor
- Video
- WordArt
- Enums
- AlignmentPosition
- ArrowStyle
- AutoTextType
- AutofitType
- CellMergeState
- ContentAlignment
- DashStyle
- FillType
- LineCategory
- LineFillType
- LineType
- LinkType
- ListPreset
- PageBackgroundType
- PageElementType
- PageType
- ParagraphAlignment
- PlaceholderType
- PredefinedLayout
- SelectionType
- ShapeType
- SheetsChartEmbedType
- SlideLinkingMode
- SlidePosition
- SpacingMode
- TextBaselineOffset
- TextDirection
- ThemeColorType
- VideoSourceType
- Advanced services
- Slides API
More...
- Groups
* Overview
* GroupsApp
* Classes
* Group
* Enums
* Role
* Advanced services
* Cloud Identity Groups API
* Migrate from Groups Service - People
* Advanced services
* People API
* Migrate from Contacts service
* Contacts
* Overview
* ContactsApp
* Classes
* AddressField
* CompanyField
* Contact
* ContactGroup
* CustomField
* DateField
* EmailField
* IMField
* PhoneField
* UrlField
* Enums
* ExtendedField
* Field
* Gender
* Priority
* Sensitivity
- Groups
Other Google services
Google Maps
YouTube
- Advanced services
- YouTube Data API
- YouTube Analytics API
- YouTube Content ID API
More...
- Google Ads & Merchant Center
- Google Data Studio
* Overview
* DataStudioApp
* Classes
* BigQueryConfig
* Checkbox
* CommunityConnector
* Config
* DebugError
* Field
* Fields
* GetAuthTypeResponse
* GetDataResponse
* GetSchemaResponse
* Info
* OptionBuilder
* SelectMultiple
* SelectSingle
* SetCredentialsResponse
* TextArea
* TextInput
* UserError
* Enums
* AggregationType
* AuthType
* BigQueryParameterType
* FieldType
Utility services
API & database connections
- JDBC
* Overview
* Jdbc
* Classes
* JdbcArray
* JdbcBlob
* JdbcCallableStatement
* JdbcClob
* JdbcConnection
* JdbcDatabaseMetaData
* JdbcDate
* JdbcParameterMetaData
* JdbcPreparedStatement
* JdbcRef
* JdbcResultSet
* JdbcResultSetMetaData
* JdbcRowId
* JdbcSQLXML
* JdbcSavepoint
* JdbcStatement
* JdbcStruct
* JdbcTime
* JdbcTimestamp
- JDBC
Data usability & optimization
- Optimization
* Overview
* LinearOptimizationService
* Classes
* LinearOptimizationConstraint
* LinearOptimizationEngine
* LinearOptimizationSolution
* Enums
* Status
* VariableType - XML
* Overview
* XmlService
* Classes
* Attribute
* Cdata
* Comment
* DocType
* Document
* Element
* EntityRef
* Format
* Namespace
* ProcessingInstruction
* Text
* Interfaces
* Content
* Enums
* ContentType
- Optimization
HTML & content
- Charts
* Overview
* Charts
* Classes
* AreaChartBuilder
* BarChartBuilder
* Chart
* ChartOptions
* ColumnChartBuilder
* DataTable
* DataTableBuilder
* DataViewDefinition
* DataViewDefinitionBuilder
* LineChartBuilder
* NumberRangeFilterBuilder
* PieChartBuilder
* ScatterChartBuilder
* StringFilterBuilder
* TableChartBuilder
* TextStyle
* TextStyleBuilder
* Interfaces
* DataTableSource
* Enums
* ChartHiddenDimensionStrategy
* ChartMergeStrategy
* ChartType
* ColumnType
* CurveStyle
* MatchType
* Orientation
* PickerValuesLayout
* PointStyle
* Position - HTML
* Overview
* google.script.history (client-side)
* google.script.host (client-side)
* google.script.run (client-side)
* google.script.url (client-side)
* HtmlService
* Classes
* HtmlOutput
* HtmlOutputMetaTag
* HtmlTemplate
* Enums
* SandboxMode
* XFrameOptionsMode
- Charts
Script execution & information
- Base
* Overview
* Browser
* Logger
* MimeType
* Session
* console
* Classes
* Blob
* Menu
* PromptResponse
* RgbColor
* Ui
* User
* Interfaces
* BlobSource
* Enums
* Button
* ButtonSet
* ColorType
* Month
* Weekday - Script
* Overview
* ScriptApp
* Classes
* AuthorizationInfo
* CalendarTriggerBuilder
* ClockTriggerBuilder
* DocumentTriggerBuilder
* FormTriggerBuilder
* Service
* SpreadsheetTriggerBuilder
* StateTokenBuilder
* Trigger
* TriggerBuilder
* Enums
* AuthMode
* AuthorizationStatus
* EventType
* InstallationSource
* TriggerSource
- Base
Script project resources
Manifest
Google Workspace add-ons
Services
- Card
* Overview
* CardService
* Classes
* Action
* ActionResponse
* ActionResponseBuilder
* ActionStatus
* Attachment
* AuthorizationAction
* AuthorizationException
* BorderStyle
* Button
* ButtonSet
* CalendarEventActionResponse
* CalendarEventActionResponseBuilder
* Card
* CardAction
* CardBuilder
* CardHeader
* CardSection
* CardWithId
* Carousel
* CarouselCard
* ChatActionResponse
* ChatClientDataSource
* ChatResponse
* ChatResponseBuilder
* ChatSpaceDataSource
* Chip
* ChipList
* CollapseControl
* Column
* Columns
* ComposeActionResponse
* ComposeActionResponseBuilder
* DatePicker
* DateTimePicker
* DecoratedText
* Dialog
* DialogAction
* Divider
* DriveItemsSelectedActionResponse
* DriveItemsSelectedActionResponseBuilder
* EditorFileScopeActionResponse
* EditorFileScopeActionResponseBuilder
* FixedFooter
* Grid
* GridItem
* HostAppDataSource
* IconImage
* Image
* ImageButton
* ImageComponent
* ImageCropStyle
* KeyValue
* LinkPreview
* MaterialIcon
* Navigation
* Notification
* OpenLink
* OverflowMenu
* OverflowMenuItem
* PlatformDataSource
* SelectionInput
* Suggestions
* SuggestionsResponse
* SuggestionsResponseBuilder
* Switch
* TextButton
* TextInput
* TextParagraph
* TimePicker
* UniversalActionResponse
* UniversalActionResponseBuilder
* UpdateDraftActionResponse
* UpdateDraftActionResponseBuilder
* UpdateDraftBccRecipientsAction
* UpdateDraftBodyAction
* UpdateDraftCcRecipientsAction
* UpdateDraftSubjectAction
* UpdateDraftToRecipientsAction
* UpdatedWidget
* Validation
* Widget
* Enums
* BorderType
* ChipListLayout
* CommonDataSource
* ComposedEmailType
* ContentType
* DisplayStyle
* GridItemLayout
* HorizontalAlignment
* HorizontalSizeStyle
* Icon
* ImageButtonStyle
* ImageCropType
* ImageStyle
* InputType
* Interaction
* LoadIndicator
* OnClose
* OpenAs
* ResponseType
* SelectionInputType
* Status
* SwitchControlType
* TextButtonStyle
* UpdateDraftBodyType
* VerticalAlignment
* WrapStyle - Conferencing Data
* Overview
* ConferenceDataService
* Classes
* ConferenceData
* ConferenceDataBuilder
* ConferenceError
* ConferenceParameter
* EntryPoint
* Enums
* ConferenceErrorType
* EntryPointFeature
* EntryPointType
- Card
Manifest
Apps Script API
v1
- Overview
- REST Resources
- Types
- ExecuteStreamResponse
- ExecutionError
- ExecutionResponse
- File
- LocalizedMessage
- NullValue
JDBC Service
Stay organized with collections Save and categorize content based on your preferences.
JDBC
This service allows scripts to connect to JDBC-compliant databases, including Google Cloud SQL, MySQL, Microsoft SQL Server, and Oracle. See also theguide to JDBC.
Classes
[JdbcArray](/apps-script/reference/jdbc/jdbc-array)
Methods
Method | Return type | Brief description |
---|---|---|
free() | void | For documentation of this method, see java.sql.Array#free(). |
getArray() | Object | For documentation of this method, see java.sql.Array#getArray() |
getArray(index, count) | Object | For documentation of this method, see java.sql.Array#getArray(long, int). |
getBaseType() | Integer | For documentation of this method, see java.sql.Array#getBaseType(). |
getBaseTypeName() | String | For documentation of this method, see java.sql.Array#getBaseTypeName(). |
getResultSet() | JdbcResultSet | For documentation of this method, see java.sql.Array#getResultSet(). |
getResultSet(index, count) | JdbcResultSet | For documentation of this method, see java.sql.Array#getResultSet(long, int). |
[JdbcBlob](/apps-script/reference/jdbc/jdbc-blob)
Methods
Method | Return type | Brief description |
---|---|---|
free() | void | For documentation of this method, see java.sql.Blob#free(). |
getAppsScriptBlob() | Blob | Gets the content of this JdbcBlob as an Apps Script blob. |
getAs(contentType) | Blob | Return the data inside this object as a blob converted to the specified content type. |
getBytes(position, length) | Byte[] | For documentation of this method, see java.sql.Blob#getBytes(long, int). |
length() | Integer | For documentation of this method, see java.sql.Blob#length(). |
position(pattern, start) | Integer | For documentation of this method, see java.sql.Blob#position(byte[], long). |
position(pattern, start) | Integer | For documentation of this method, see java.sql.Blob#position(blob, long). |
setBytes(position, blobSource) | Integer | Convenience method for writing a JdbcBlob to this blob. |
setBytes(position, blobSource, offset, length) | Integer | Convenience method for writing a JdbcBlob to this blob. |
setBytes(position, bytes) | Integer | For documentation of this method, see java.sql.Blob#setBytes(long, byte[]). |
setBytes(position, bytes, offset, length) | Integer | For documentation of this method, see java.sql.Blob#setBytes(long, byte[], int, int). |
truncate(length) | void | For documentation of this method, see java.sql.Blob#truncate(long). |
[JdbcCallableStatement](/apps-script/reference/jdbc/jdbc-callable-statement)
Methods
[JdbcClob](/apps-script/reference/jdbc/jdbc-clob)
Methods
Method | Return type | Brief description |
---|---|---|
free() | void | For documentation of this method, see java.sql.Clob#truncate(long). |
getAppsScriptBlob() | Blob | Gets the content of this JdbcClob as an Apps Script blob. |
getAs(contentType) | Blob | Return the data inside this object as a blob converted to the specified content type. |
getSubString(position, length) | String | For documentation of this method, see java.sql.Clob#getSubString(long, int). |
length() | Integer | For documentation of this method, see java.sql.Clob#length(). |
position(search, start) | Integer | For documentation of this method, see java.sql.Clob#position(Clob, long). |
position(search, start) | Integer | For documentation of this method, see java.sql.Clob#position(String, long). |
setString(position, blobSource) | Integer | Convenience method for writing a JdbcClob to a clob. |
setString(position, blobSource, offset, len) | Integer | Convenience method for writing a JdbcClob to a clob. |
setString(position, value) | Integer | For documentation of this method, see java.sql.Clob#setString(long, String). |
setString(position, value, offset, len) | Integer | For documentation of this method, see java.sql.Clob#setString(long, String, int, int). |
truncate(length) | void | For documentation of this method, see java.sql.Clob#truncate(long). |
[JdbcConnection](/apps-script/reference/jdbc/jdbc-connection)
Methods
Methods
[JdbcDate](/apps-script/reference/jdbc/jdbc-date)
Methods
Method | Return type | Brief description |
---|---|---|
after(when) | Boolean | For documentation of this method, see java.sql.Date#after(date). |
before(when) | Boolean | For documentation of this method, see java.sql.Date#before(date). |
getDate() | Integer | For documentation of this method, see java.sql.Date#getDate(). |
getMonth() | Integer | For documentation of this method, see java.sql.Date#getMonth(). |
getTime() | Integer | For documentation of this method, see java.sql.Date#getTime(). |
getYear() | Integer | For documentation of this method, see java.sql.Date#getYear(). |
setDate(date) | void | For documentation of this method, see java.sql.Date#setDate(int). |
setMonth(month) | void | For documentation of this method, see java.sql.Date#setMonth(int). |
setTime(milliseconds) | void | For documentation of this method, see java.sql.Date#setTime(int). |
setYear(year) | void | For documentation of this method, see java.sql.Date#setYear(int). |
[JdbcPreparedStatement](/apps-script/reference/jdbc/jdbc-prepared-statement)
Methods
[JdbcRef](/apps-script/reference/jdbc/jdbc-ref)
[JdbcResultSet](/apps-script/reference/jdbc/jdbc-result-set)
Methods
Methods
[JdbcRowId](/apps-script/reference/jdbc/jdbc-row-id)
[JdbcSQLXML](/apps-script/reference/jdbc/jdbc-sqlxml)
[JdbcSavepoint](/apps-script/reference/jdbc/jdbc-savepoint)
[JdbcStatement](/apps-script/reference/jdbc/jdbc-statement)
Methods
[JdbcStruct](/apps-script/reference/jdbc/jdbc-struct)
[JdbcTime](/apps-script/reference/jdbc/jdbc-time)
Methods
Method | Return type | Brief description |
---|---|---|
after(when) | Boolean | For documentation of this method, see java.sql.Date#after(Date). |
before(when) | Boolean | For documentation of this method, see java.sql.Date#before(Date). |
getHours() | Integer | For documentation of this method, see java.sql.Date#getHours(). |
getMinutes() | Integer | For documentation of this method, see java.sql.Date#getMinutes(). |
getSeconds() | Integer | For documentation of this method, see java.sql.Date#getSeconds(). |
getTime() | Integer | For documentation of this method, see java.sql.Date#getTime(). |
setHours(hours) | void | For documentation of this method, see java.sql.Date#setHours(int). |
setMinutes(minutes) | void | For documentation of this method, see java.sql.Date#setMinutes(int). |
setSeconds(seconds) | void | For documentation of this method, see java.sql.Date#setSeconds(int). |
setTime(milliseconds) | void | For documentation of this method, see java.sql.Time#setTime(long). |
[JdbcTimestamp](/apps-script/reference/jdbc/jdbc-timestamp)
Methods
Method | Return type | Brief description |
---|---|---|
after(when) | Boolean | For documentation of this method, see java.sql.Timestamp#after(Timestamp). |
before(when) | Boolean | For documentation of this method, see java.sql.Timestamp#before(Timestamp). |
getDate() | Integer | For documentation of this method, see java.sql.Date#getDate(). |
getHours() | Integer | For documentation of this method, see java.sql.Date#getHours(). |
getMinutes() | Integer | For documentation of this method, see java.sql.Date#getMinutes(). |
getMonth() | Integer | For documentation of this method, see java.sql.Date#getMonth(). |
getNanos() | Integer | For documentation of this method, see java.sql.Timestamp#getNanos(). |
getSeconds() | Integer | For documentation of this method, see java.sql.Date#getSeconds(). |
getTime() | Integer | For documentation of this method, see java.sql.Timestamp#getTime(). |
getYear() | Integer | For documentation of this method, see java.sql.Date#getYear(). |
setDate(date) | void | For documentation of this method, see java.sql.Date#setDate(int). |
setHours(hours) | void | For documentation of this method, see java.sql.Date#setHours(int). |
setMinutes(minutes) | void | For documentation of this method, see java.sql.Date#setMinutes(int). |
setMonth(month) | void | For documentation of this method, see java.sql.Date#setMonth(int). |
setNanos(nanoseconds) | void | For documentation of this method, see java.sql.Timestamp#setNanos(int). |
setSeconds(seconds) | void | For documentation of this method, see java.sql.Date#setSeconds(int). |
setTime(milliseconds) | void | For documentation of this method, see java.sql.Timestamp#setTime(long). |
setYear(year) | void | For documentation of this method, see java.sql.Date#setYear(int). |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-05 UTC.