_id stringlengths 2 7 | title stringlengths 1 118 | partition stringclasses 3
values | text stringlengths 52 85.5k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q1800 | SetSupportedEndpointTypes | train | func (s *DescribeEndpointTypesOutput) SetSupportedEndpointTypes(v []*SupportedEndpointType) *DescribeEndpointTypesOutput {
s.SupportedEndpointTypes = v
return s
} | go | {
"resource": ""
} |
q1801 | SetEventCategoryGroupList | train | func (s *DescribeEventCategoriesOutput) SetEventCategoryGroupList(v []*EventCategoryGroup) *DescribeEventCategoriesOutput {
s.EventCategoryGroupList = v
return s
} | go | {
"resource": ""
} |
q1802 | SetOrderableReplicationInstances | train | func (s *DescribeOrderableReplicationInstancesOutput) SetOrderableReplicationInstances(v []*OrderableReplicationInstance) *DescribeOrderableReplicationInstancesOutput {
s.OrderableReplicationInstances = v
return s
} | go | {
"resource": ""
} |
q1803 | SetReplicationInstanceTaskLogs | train | func (s *DescribeReplicationInstanceTaskLogsOutput) SetReplicationInstanceTaskLogs(v []*ReplicationInstanceTaskLog) *DescribeReplicationInstanceTaskLogsOutput {
s.ReplicationInstanceTaskLogs = v
return s
} | go | {
"resource": ""
} |
q1804 | SetReplicationInstances | train | func (s *DescribeReplicationInstancesOutput) SetReplicationInstances(v []*ReplicationInstance) *DescribeReplicationInstancesOutput {
s.ReplicationInstances = v
return s
} | go | {
"resource": ""
} |
q1805 | SetReplicationSubnetGroups | train | func (s *DescribeReplicationSubnetGroupsOutput) SetReplicationSubnetGroups(v []*ReplicationSubnetGroup) *DescribeReplicationSubnetGroupsOutput {
s.ReplicationSubnetGroups = v
return s
} | go | {
"resource": ""
} |
q1806 | SetReplicationTaskAssessmentResults | train | func (s *DescribeReplicationTaskAssessmentResultsOutput) SetReplicationTaskAssessmentResults(v []*ReplicationTaskAssessmentResult) *DescribeReplicationTaskAssessmentResultsOutput {
s.ReplicationTaskAssessmentResults = v
return s
} | go | {
"resource": ""
} |
q1807 | SetWithoutSettings | train | func (s *DescribeReplicationTasksInput) SetWithoutSettings(v bool) *DescribeReplicationTasksInput {
s.WithoutSettings = &v
return s
} | go | {
"resource": ""
} |
q1808 | SetReplicationTasks | train | func (s *DescribeReplicationTasksOutput) SetReplicationTasks(v []*ReplicationTask) *DescribeReplicationTasksOutput {
s.ReplicationTasks = v
return s
} | go | {
"resource": ""
} |
q1809 | SetTableStatistics | train | func (s *DescribeTableStatisticsOutput) SetTableStatistics(v []*TableStatistics) *DescribeTableStatisticsOutput {
s.TableStatistics = v
return s
} | go | {
"resource": ""
} |
q1810 | SetEndpointUri | train | func (s *ElasticsearchSettings) SetEndpointUri(v string) *ElasticsearchSettings {
s.EndpointUri = &v
return s
} | go | {
"resource": ""
} |
q1811 | SetErrorRetryDuration | train | func (s *ElasticsearchSettings) SetErrorRetryDuration(v int64) *ElasticsearchSettings {
s.ErrorRetryDuration = &v
return s
} | go | {
"resource": ""
} |
q1812 | SetFullLoadErrorPercentage | train | func (s *ElasticsearchSettings) SetFullLoadErrorPercentage(v int64) *ElasticsearchSettings {
s.FullLoadErrorPercentage = &v
return s
} | go | {
"resource": ""
} |
q1813 | SetAuthMechanism | train | func (s *MongoDbSettings) SetAuthMechanism(v string) *MongoDbSettings {
s.AuthMechanism = &v
return s
} | go | {
"resource": ""
} |
q1814 | SetAuthSource | train | func (s *MongoDbSettings) SetAuthSource(v string) *MongoDbSettings {
s.AuthSource = &v
return s
} | go | {
"resource": ""
} |
q1815 | SetDocsToInvestigate | train | func (s *MongoDbSettings) SetDocsToInvestigate(v string) *MongoDbSettings {
s.DocsToInvestigate = &v
return s
} | go | {
"resource": ""
} |
q1816 | SetExtractDocId | train | func (s *MongoDbSettings) SetExtractDocId(v string) *MongoDbSettings {
s.ExtractDocId = &v
return s
} | go | {
"resource": ""
} |
q1817 | SetNestingLevel | train | func (s *MongoDbSettings) SetNestingLevel(v string) *MongoDbSettings {
s.NestingLevel = &v
return s
} | go | {
"resource": ""
} |
q1818 | SetDefaultAllocatedStorage | train | func (s *OrderableReplicationInstance) SetDefaultAllocatedStorage(v int64) *OrderableReplicationInstance {
s.DefaultAllocatedStorage = &v
return s
} | go | {
"resource": ""
} |
q1819 | SetIncludedAllocatedStorage | train | func (s *OrderableReplicationInstance) SetIncludedAllocatedStorage(v int64) *OrderableReplicationInstance {
s.IncludedAllocatedStorage = &v
return s
} | go | {
"resource": ""
} |
q1820 | SetMaxAllocatedStorage | train | func (s *OrderableReplicationInstance) SetMaxAllocatedStorage(v int64) *OrderableReplicationInstance {
s.MaxAllocatedStorage = &v
return s
} | go | {
"resource": ""
} |
q1821 | SetMinAllocatedStorage | train | func (s *OrderableReplicationInstance) SetMinAllocatedStorage(v int64) *OrderableReplicationInstance {
s.MinAllocatedStorage = &v
return s
} | go | {
"resource": ""
} |
q1822 | SetAcceptAnyDate | train | func (s *RedshiftSettings) SetAcceptAnyDate(v bool) *RedshiftSettings {
s.AcceptAnyDate = &v
return s
} | go | {
"resource": ""
} |
q1823 | SetAfterConnectScript | train | func (s *RedshiftSettings) SetAfterConnectScript(v string) *RedshiftSettings {
s.AfterConnectScript = &v
return s
} | go | {
"resource": ""
} |
q1824 | SetConnectionTimeout | train | func (s *RedshiftSettings) SetConnectionTimeout(v int64) *RedshiftSettings {
s.ConnectionTimeout = &v
return s
} | go | {
"resource": ""
} |
q1825 | SetDateFormat | train | func (s *RedshiftSettings) SetDateFormat(v string) *RedshiftSettings {
s.DateFormat = &v
return s
} | go | {
"resource": ""
} |
q1826 | SetEmptyAsNull | train | func (s *RedshiftSettings) SetEmptyAsNull(v bool) *RedshiftSettings {
s.EmptyAsNull = &v
return s
} | go | {
"resource": ""
} |
q1827 | SetFileTransferUploadStreams | train | func (s *RedshiftSettings) SetFileTransferUploadStreams(v int64) *RedshiftSettings {
s.FileTransferUploadStreams = &v
return s
} | go | {
"resource": ""
} |
q1828 | SetLoadTimeout | train | func (s *RedshiftSettings) SetLoadTimeout(v int64) *RedshiftSettings {
s.LoadTimeout = &v
return s
} | go | {
"resource": ""
} |
q1829 | SetMaxFileSize | train | func (s *RedshiftSettings) SetMaxFileSize(v int64) *RedshiftSettings {
s.MaxFileSize = &v
return s
} | go | {
"resource": ""
} |
q1830 | SetRemoveQuotes | train | func (s *RedshiftSettings) SetRemoveQuotes(v bool) *RedshiftSettings {
s.RemoveQuotes = &v
return s
} | go | {
"resource": ""
} |
q1831 | SetReplaceChars | train | func (s *RedshiftSettings) SetReplaceChars(v string) *RedshiftSettings {
s.ReplaceChars = &v
return s
} | go | {
"resource": ""
} |
q1832 | SetReplaceInvalidChars | train | func (s *RedshiftSettings) SetReplaceInvalidChars(v string) *RedshiftSettings {
s.ReplaceInvalidChars = &v
return s
} | go | {
"resource": ""
} |
q1833 | SetTimeFormat | train | func (s *RedshiftSettings) SetTimeFormat(v string) *RedshiftSettings {
s.TimeFormat = &v
return s
} | go | {
"resource": ""
} |
q1834 | SetTrimBlanks | train | func (s *RedshiftSettings) SetTrimBlanks(v bool) *RedshiftSettings {
s.TrimBlanks = &v
return s
} | go | {
"resource": ""
} |
q1835 | SetTruncateColumns | train | func (s *RedshiftSettings) SetTruncateColumns(v bool) *RedshiftSettings {
s.TruncateColumns = &v
return s
} | go | {
"resource": ""
} |
q1836 | SetWriteBufferSize | train | func (s *RedshiftSettings) SetWriteBufferSize(v int64) *RedshiftSettings {
s.WriteBufferSize = &v
return s
} | go | {
"resource": ""
} |
q1837 | SetLastRefreshDate | train | func (s *RefreshSchemasStatus) SetLastRefreshDate(v time.Time) *RefreshSchemasStatus {
s.LastRefreshDate = &v
return s
} | go | {
"resource": ""
} |
q1838 | SetReloadOption | train | func (s *ReloadTablesInput) SetReloadOption(v string) *ReloadTablesInput {
s.ReloadOption = &v
return s
} | go | {
"resource": ""
} |
q1839 | SetTablesToReload | train | func (s *ReloadTablesInput) SetTablesToReload(v []*TableToReload) *ReloadTablesInput {
s.TablesToReload = v
return s
} | go | {
"resource": ""
} |
q1840 | SetFreeUntil | train | func (s *ReplicationInstance) SetFreeUntil(v time.Time) *ReplicationInstance {
s.FreeUntil = &v
return s
} | go | {
"resource": ""
} |
q1841 | SetReplicationInstancePrivateIpAddress | train | func (s *ReplicationInstance) SetReplicationInstancePrivateIpAddress(v string) *ReplicationInstance {
s.ReplicationInstancePrivateIpAddress = &v
return s
} | go | {
"resource": ""
} |
q1842 | SetReplicationInstancePrivateIpAddresses | train | func (s *ReplicationInstance) SetReplicationInstancePrivateIpAddresses(v []*string) *ReplicationInstance {
s.ReplicationInstancePrivateIpAddresses = v
return s
} | go | {
"resource": ""
} |
q1843 | SetReplicationInstancePublicIpAddress | train | func (s *ReplicationInstance) SetReplicationInstancePublicIpAddress(v string) *ReplicationInstance {
s.ReplicationInstancePublicIpAddress = &v
return s
} | go | {
"resource": ""
} |
q1844 | SetReplicationInstancePublicIpAddresses | train | func (s *ReplicationInstance) SetReplicationInstancePublicIpAddresses(v []*string) *ReplicationInstance {
s.ReplicationInstancePublicIpAddresses = v
return s
} | go | {
"resource": ""
} |
q1845 | SetReplicationInstanceStatus | train | func (s *ReplicationInstance) SetReplicationInstanceStatus(v string) *ReplicationInstance {
s.ReplicationInstanceStatus = &v
return s
} | go | {
"resource": ""
} |
q1846 | SetReplicationInstanceTaskLogSize | train | func (s *ReplicationInstanceTaskLog) SetReplicationInstanceTaskLogSize(v int64) *ReplicationInstanceTaskLog {
s.ReplicationInstanceTaskLogSize = &v
return s
} | go | {
"resource": ""
} |
q1847 | SetReplicationTaskName | train | func (s *ReplicationInstanceTaskLog) SetReplicationTaskName(v string) *ReplicationInstanceTaskLog {
s.ReplicationTaskName = &v
return s
} | go | {
"resource": ""
} |
q1848 | SetRecoveryCheckpoint | train | func (s *ReplicationTask) SetRecoveryCheckpoint(v string) *ReplicationTask {
s.RecoveryCheckpoint = &v
return s
} | go | {
"resource": ""
} |
q1849 | SetReplicationTaskCreationDate | train | func (s *ReplicationTask) SetReplicationTaskCreationDate(v time.Time) *ReplicationTask {
s.ReplicationTaskCreationDate = &v
return s
} | go | {
"resource": ""
} |
q1850 | SetReplicationTaskStartDate | train | func (s *ReplicationTask) SetReplicationTaskStartDate(v time.Time) *ReplicationTask {
s.ReplicationTaskStartDate = &v
return s
} | go | {
"resource": ""
} |
q1851 | SetReplicationTaskStats | train | func (s *ReplicationTask) SetReplicationTaskStats(v *ReplicationTaskStats) *ReplicationTask {
s.ReplicationTaskStats = v
return s
} | go | {
"resource": ""
} |
q1852 | SetStopReason | train | func (s *ReplicationTask) SetStopReason(v string) *ReplicationTask {
s.StopReason = &v
return s
} | go | {
"resource": ""
} |
q1853 | SetAssessmentResults | train | func (s *ReplicationTaskAssessmentResult) SetAssessmentResults(v string) *ReplicationTaskAssessmentResult {
s.AssessmentResults = &v
return s
} | go | {
"resource": ""
} |
q1854 | SetAssessmentResultsFile | train | func (s *ReplicationTaskAssessmentResult) SetAssessmentResultsFile(v string) *ReplicationTaskAssessmentResult {
s.AssessmentResultsFile = &v
return s
} | go | {
"resource": ""
} |
q1855 | SetAssessmentStatus | train | func (s *ReplicationTaskAssessmentResult) SetAssessmentStatus(v string) *ReplicationTaskAssessmentResult {
s.AssessmentStatus = &v
return s
} | go | {
"resource": ""
} |
q1856 | SetReplicationTaskLastAssessmentDate | train | func (s *ReplicationTaskAssessmentResult) SetReplicationTaskLastAssessmentDate(v time.Time) *ReplicationTaskAssessmentResult {
s.ReplicationTaskLastAssessmentDate = &v
return s
} | go | {
"resource": ""
} |
q1857 | SetS3ObjectUrl | train | func (s *ReplicationTaskAssessmentResult) SetS3ObjectUrl(v string) *ReplicationTaskAssessmentResult {
s.S3ObjectUrl = &v
return s
} | go | {
"resource": ""
} |
q1858 | SetElapsedTimeMillis | train | func (s *ReplicationTaskStats) SetElapsedTimeMillis(v int64) *ReplicationTaskStats {
s.ElapsedTimeMillis = &v
return s
} | go | {
"resource": ""
} |
q1859 | SetFullLoadProgressPercent | train | func (s *ReplicationTaskStats) SetFullLoadProgressPercent(v int64) *ReplicationTaskStats {
s.FullLoadProgressPercent = &v
return s
} | go | {
"resource": ""
} |
q1860 | SetTablesErrored | train | func (s *ReplicationTaskStats) SetTablesErrored(v int64) *ReplicationTaskStats {
s.TablesErrored = &v
return s
} | go | {
"resource": ""
} |
q1861 | SetTablesLoaded | train | func (s *ReplicationTaskStats) SetTablesLoaded(v int64) *ReplicationTaskStats {
s.TablesLoaded = &v
return s
} | go | {
"resource": ""
} |
q1862 | SetTablesLoading | train | func (s *ReplicationTaskStats) SetTablesLoading(v int64) *ReplicationTaskStats {
s.TablesLoading = &v
return s
} | go | {
"resource": ""
} |
q1863 | SetTablesQueued | train | func (s *ReplicationTaskStats) SetTablesQueued(v int64) *ReplicationTaskStats {
s.TablesQueued = &v
return s
} | go | {
"resource": ""
} |
q1864 | SetCdcInsertsOnly | train | func (s *S3Settings) SetCdcInsertsOnly(v bool) *S3Settings {
s.CdcInsertsOnly = &v
return s
} | go | {
"resource": ""
} |
q1865 | SetCsvDelimiter | train | func (s *S3Settings) SetCsvDelimiter(v string) *S3Settings {
s.CsvDelimiter = &v
return s
} | go | {
"resource": ""
} |
q1866 | SetCsvRowDelimiter | train | func (s *S3Settings) SetCsvRowDelimiter(v string) *S3Settings {
s.CsvRowDelimiter = &v
return s
} | go | {
"resource": ""
} |
q1867 | SetDataFormat | train | func (s *S3Settings) SetDataFormat(v string) *S3Settings {
s.DataFormat = &v
return s
} | go | {
"resource": ""
} |
q1868 | SetDataPageSize | train | func (s *S3Settings) SetDataPageSize(v int64) *S3Settings {
s.DataPageSize = &v
return s
} | go | {
"resource": ""
} |
q1869 | SetDictPageSizeLimit | train | func (s *S3Settings) SetDictPageSizeLimit(v int64) *S3Settings {
s.DictPageSizeLimit = &v
return s
} | go | {
"resource": ""
} |
q1870 | SetEnableStatistics | train | func (s *S3Settings) SetEnableStatistics(v bool) *S3Settings {
s.EnableStatistics = &v
return s
} | go | {
"resource": ""
} |
q1871 | SetParquetVersion | train | func (s *S3Settings) SetParquetVersion(v string) *S3Settings {
s.ParquetVersion = &v
return s
} | go | {
"resource": ""
} |
q1872 | SetRowGroupLength | train | func (s *S3Settings) SetRowGroupLength(v int64) *S3Settings {
s.RowGroupLength = &v
return s
} | go | {
"resource": ""
} |
q1873 | SetStartReplicationTaskType | train | func (s *StartReplicationTaskInput) SetStartReplicationTaskType(v string) *StartReplicationTaskInput {
s.StartReplicationTaskType = &v
return s
} | go | {
"resource": ""
} |
q1874 | SetSupportsCDC | train | func (s *SupportedEndpointType) SetSupportsCDC(v bool) *SupportedEndpointType {
s.SupportsCDC = &v
return s
} | go | {
"resource": ""
} |
q1875 | SetDdls | train | func (s *TableStatistics) SetDdls(v int64) *TableStatistics {
s.Ddls = &v
return s
} | go | {
"resource": ""
} |
q1876 | SetFullLoadCondtnlChkFailedRows | train | func (s *TableStatistics) SetFullLoadCondtnlChkFailedRows(v int64) *TableStatistics {
s.FullLoadCondtnlChkFailedRows = &v
return s
} | go | {
"resource": ""
} |
q1877 | SetFullLoadErrorRows | train | func (s *TableStatistics) SetFullLoadErrorRows(v int64) *TableStatistics {
s.FullLoadErrorRows = &v
return s
} | go | {
"resource": ""
} |
q1878 | SetFullLoadRows | train | func (s *TableStatistics) SetFullLoadRows(v int64) *TableStatistics {
s.FullLoadRows = &v
return s
} | go | {
"resource": ""
} |
q1879 | SetInserts | train | func (s *TableStatistics) SetInserts(v int64) *TableStatistics {
s.Inserts = &v
return s
} | go | {
"resource": ""
} |
q1880 | SetTableState | train | func (s *TableStatistics) SetTableState(v string) *TableStatistics {
s.TableState = &v
return s
} | go | {
"resource": ""
} |
q1881 | SetValidationFailedRecords | train | func (s *TableStatistics) SetValidationFailedRecords(v int64) *TableStatistics {
s.ValidationFailedRecords = &v
return s
} | go | {
"resource": ""
} |
q1882 | SetValidationPendingRecords | train | func (s *TableStatistics) SetValidationPendingRecords(v int64) *TableStatistics {
s.ValidationPendingRecords = &v
return s
} | go | {
"resource": ""
} |
q1883 | SetValidationState | train | func (s *TableStatistics) SetValidationState(v string) *TableStatistics {
s.ValidationState = &v
return s
} | go | {
"resource": ""
} |
q1884 | SetValidationStateDetails | train | func (s *TableStatistics) SetValidationStateDetails(v string) *TableStatistics {
s.ValidationStateDetails = &v
return s
} | go | {
"resource": ""
} |
q1885 | SetValidationSuspendedRecords | train | func (s *TableStatistics) SetValidationSuspendedRecords(v int64) *TableStatistics {
s.ValidationSuspendedRecords = &v
return s
} | go | {
"resource": ""
} |
q1886 | newAESCBC | train | func newAESCBC(cd CipherData, padder Padder) (Cipher, error) {
block, err := aes.NewCipher(cd.Key)
if err != nil {
return nil, err
}
encrypter := cipher.NewCBCEncrypter(block, cd.IV)
decrypter := cipher.NewCBCDecrypter(block, cd.IV)
return &aesCBC{encrypter, decrypter, padder}, nil
} | go | {
"resource": ""
} |
q1887 | Encrypt | train | func (c *aesCBC) Encrypt(src io.Reader) io.Reader {
reader := &cbcEncryptReader{
encrypter: c.encrypter,
src: src,
padder: c.padder,
}
return reader
} | go | {
"resource": ""
} |
q1888 | Decrypt | train | func (c *aesCBC) Decrypt(src io.Reader) io.Reader {
return &cbcDecryptReader{
decrypter: c.decrypter,
src: src,
padder: c.padder,
}
} | go | {
"resource": ""
} |
q1889 | Read | train | func (reader *cbcDecryptReader) Read(data []byte) (int, error) {
n, err := reader.src.Read(data)
blockSize := reader.decrypter.BlockSize()
reader.buf.Write(data[:n])
if err == io.EOF {
b := make([]byte, getSliceSize(blockSize, reader.buf.Len(), len(data)))
n, err = reader.buf.Read(b)
if err != nil && err != ... | go | {
"resource": ""
} |
q1890 | getSliceSize | train | func getSliceSize(blockSize, bufSize, dataSize int) int {
size := bufSize
if bufSize > dataSize {
size = dataSize
}
size = size - (size % blockSize) - blockSize
if size <= 0 {
size = blockSize
}
return size
} | go | {
"resource": ""
} |
q1891 | SetResolverRuleAssociationId | train | func (s *GetResolverRuleAssociationInput) SetResolverRuleAssociationId(v string) *GetResolverRuleAssociationInput {
s.ResolverRuleAssociationId = &v
return s
} | go | {
"resource": ""
} |
q1892 | SetResolverEndpoints | train | func (s *ListResolverEndpointsOutput) SetResolverEndpoints(v []*ResolverEndpoint) *ListResolverEndpointsOutput {
s.ResolverEndpoints = v
return s
} | go | {
"resource": ""
} |
q1893 | SetResolverRuleAssociations | train | func (s *ListResolverRuleAssociationsOutput) SetResolverRuleAssociations(v []*ResolverRuleAssociation) *ListResolverRuleAssociationsOutput {
s.ResolverRuleAssociations = v
return s
} | go | {
"resource": ""
} |
q1894 | SetResolverRules | train | func (s *ListResolverRulesOutput) SetResolverRules(v []*ResolverRule) *ListResolverRulesOutput {
s.ResolverRules = v
return s
} | go | {
"resource": ""
} |
q1895 | SetHostVPCId | train | func (s *ResolverEndpoint) SetHostVPCId(v string) *ResolverEndpoint {
s.HostVPCId = &v
return s
} | go | {
"resource": ""
} |
q1896 | SetIpAddressCount | train | func (s *ResolverEndpoint) SetIpAddressCount(v int64) *ResolverEndpoint {
s.IpAddressCount = &v
return s
} | go | {
"resource": ""
} |
q1897 | get | train | func (c *EndpointCache) get(endpointKey string) (Endpoint, bool) {
endpoint, ok := c.endpoints.Load(endpointKey)
if !ok {
return Endpoint{}, false
}
c.endpoints.Store(endpointKey, endpoint)
return endpoint.(Endpoint), true
} | go | {
"resource": ""
} |
q1898 | Has | train | func (c *EndpointCache) Has(endpointKey string) bool {
endpoint, ok := c.get(endpointKey)
_, found := endpoint.GetValidAddress()
return ok && found
} | go | {
"resource": ""
} |
q1899 | Get | train | func (c *EndpointCache) Get(d Discoverer, endpointKey string, required bool) (WeightedAddress, error) {
var err error
endpoint, ok := c.get(endpointKey)
weighted, found := endpoint.GetValidAddress()
shouldGet := !ok || !found
if required && shouldGet {
if endpoint, err = c.discover(d, endpointKey); err != nil {... | go | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.