MCPcopy Create free account

hub / github.com/LindsayBradford/go-dbf / functions

Functions115 in github.com/LindsayBradford/go-dbf

↓ 29 callersMethodFields
Fields return the fields of the table as a slice
godbf/table.go:330
↓ 23 callersFunctionNew
New creates a new dbase table from scratch for the given character encoding
godbf/interpreter.go:131
↓ 15 callersMethodAddBooleanField
(fieldName string)
godbf/table.go:185
↓ 13 callersMethodSetFieldValueByName
SetFieldValueByName sets the value for the given row and field name as specified If the field name does not exist, or the value is incompatible with t
godbf/table.go:416
↓ 10 callersFunctionNewFromFile
NewFromFile creates a DbfTable, reading it from a file with the given file name, expecting the supplied encoding.
godbf/io.go:12
↓ 10 callersMethodNumberOfRecords
NumberOfRecords returns the number of records in the table
godbf/table.go:403
↓ 8 callersMethodFieldValueByName
FieldValueByName returns the value of a field given row number and name provided
godbf/table.go:542
↓ 7 callersMethodAddFloatField
(fieldName string, length byte, decimalPlaces uint8)
godbf/table.go:201
↓ 7 callersMethodAddNewRecord
AddNewRecord adds a new empty record to the table, and returns the index number of the record.
godbf/table.go:375
↓ 6 callersMethodAddNumberField
(fieldName string, length byte, decimalPlaces uint8)
godbf/table.go:197
↓ 6 callersMethodAddTextField
(fieldName string, length byte)
godbf/table.go:193
↓ 6 callersFunctionNewFromByteArray
NewFromByteArray creates a DbfTable, reading it from a raw byte array, expecting the supplied encoding.
godbf/interpreter.go:10
↓ 5 callersMethodGetRowAsSlice
GetRowAsSlice return the record values for the row specified as a string slice
godbf/table.go:559
↓ 5 callersMethodaddField
(fieldName string, fieldType DbaseDataType, length byte, decimalPlaces uint8)
godbf/table.go:205
↓ 4 callersMethodAddDateField
(fieldName string)
godbf/table.go:189
↓ 4 callersMethodDecimalPlacesInField
DecimalPlacesInField returns the number of decimal places for the field with the given name. If the field does not exist, or does not use decimal plac
godbf/table.go:360
↓ 4 callersMethodFieldNames
FieldNames return the names of fields in the table as a slice
godbf/table.go:335
↓ 4 callersFunctionSaveToFile
SaveToFile saves the supplied DbfTable to a file of the specified filename
godbf/io.go:27
↓ 3 callersMethoddecimalCountNotApplicable
decimalCountNotApplicable is a convenience decorator supplying a 0-valued byte. THis is used indicate that the data type describes a field that does n
godbf/field.go:77
↓ 3 callersFunctionuint32ToBytes
(x uint32)
godbf/helpers.go:57
↓ 3 callersFunctionverifyTableIsCorrect
(tableUnderTest *DbfTable, g *GomegaWithT)
godbf/io_test.go:129
↓ 2 callersMethodCreate
(name string)
godbf/helpers.go:15
↓ 2 callersMethodFieldType
FieldType returns the type of data stored for the field as a DbaseDataType
godbf/field.go:18
↓ 2 callersMethodFieldValue
FieldValue returns the content for the record at the given row and field index as a string If the row or field index is invalid, an error is returned
godbf/table.go:487
↓ 2 callersMethodHasField
HasField returns true if the table has a field with the given name If the field does not exist an error is returned.
godbf/table.go:347
↓ 2 callersMethodLastUpdated
LastUpdated interprets the byte trio in dateOfLastUpdate, returning as close a time.Time value as possible. As no hours, minutes, seconds, etc. are s
godbf/table.go:120
↓ 2 callersMethodOpen
(name string)
godbf/helpers.go:16
↓ 2 callersMethodStat
()
godbf/helpers.go:34
↓ 2 callersMethodUseEncoding
(encoding string)
godbf/table.go:174
↓ 2 callersMethodfixedFieldLength
fixedFieldLength returns the length in bytes in for the data type if it describes a fixed-length field.
godbf/field.go:54
↓ 2 callersMethodupdateHeader
()
godbf/table.go:289
↓ 1 callersMethodDecimalPlaces
DecimalPlaces returns the count of decimal places for the field
godbf/field.go:28
↓ 1 callersMethodFloat64FieldValueByName
Float64FieldValueByName returns the value of a field given row number and name provided as a float64
godbf/table.go:530
↓ 1 callersMethodInt64FieldValueByName
Int64FieldValueByName returns the value of a field given row number and name provided as an int64
godbf/table.go:536
↓ 1 callersMethodLength
Length returns the length of data stored for the field
godbf/field.go:23
↓ 1 callersMethodLowDefTime
LowDefTime takes a time.Time and returns a low-definition time.Time equivalent that follows the same simplification approach as LastUpdated().
godbf/table.go:133
↓ 1 callersMethodName
Name returns the column name of the field
godbf/field.go:13
↓ 1 callersMethodRefreshLastUpdated
RefreshLastUpdated refreshes the dateOfLastUpdate to the YYMMDD byte encoding of today, assuming the local timezone. SetLastUpdated() is used by this
godbf/table.go:95
↓ 1 callersMethodSetFieldValue
SetFieldValue sets the value for the given row and field index as specified If the field index is invalid, or the value is incompatible with the field
godbf/table.go:425
↓ 1 callersMethodSetLastUpdated
SetLastUpdated sets the dateOfLastUpdate to the YYMMDD byte encoding of the time.Time specified. See dateOfLastUpdate for the various limitations pres
godbf/table.go:101
↓ 1 callersMethodSetLastUpdatedFromBytes
SetLastUpdatedFromBytes sets the dateOfLastUpdate to the YYMMDD byte encoding of the time specified. The 0-index is assigned to updateYear, the 1-inde
godbf/table.go:111
↓ 1 callersMethodSetLengthOfEachRecordFromBytes
SetLengthOfEachRecordFromBytes sets lengthOfEachRecord from a byte array.
godbf/table.go:68
↓ 1 callersMethodSetNumberOfBytesInHeaderFromBytes
SetNumberOfBytesInHeaderFromBytes sets numberOfBytesInHeader from a byte array.
godbf/table.go:63
↓ 1 callersMethodSetNumberOfRecordsFromBytes
SetNumberOfRecordsFromBytes sets numberOfRecords from a byte array.
godbf/table.go:58
↓ 1 callersMethodbyte
()
godbf/field.go:47
↓ 1 callersMethodconvertToByteSlice
* getByteSlice converts value to byte slice according to given encoding and return a slice that is fixedFieldLength equals to numberOfBytes or les
godbf/table.go:277
↓ 1 callersFunctionderiveFieldName
(s []byte, dt *DbfTable, offset int)
godbf/interpreter.go:85
↓ 1 callersFunctionenforceBlankPadding
Some Dbf encoders pad with null chars instead of blanks, this forces blanks as per https://www.dbase.com/Knowledgebase/INT/db7_file_fmt.htm
godbf/table.go:521
↓ 1 callersMethodfillFieldWithBlanks
(fieldLength int, offset int, recordOffset int)
godbf/table.go:479
↓ 1 callersFunctionlockSchema
(dt *DbfTable)
godbf/interpreter.go:126
↓ 1 callersMethodnormaliseFieldName
(name string)
godbf/table.go:258
↓ 1 callersFunctionreadFile
(filename string)
godbf/helpers.go:37
↓ 1 callersFunctionunpackField
(s []byte, dt *DbfTable, fieldIndex int)
godbf/interpreter.go:56
↓ 1 callersFunctionunpackFields
(s []byte, dt *DbfTable)
godbf/interpreter.go:42
↓ 1 callersFunctionunpackFooter
(data []byte, dt *DbfTable)
godbf/interpreter.go:103
↓ 1 callersFunctionunpackHeader
(s []byte, dt *DbfTable)
godbf/interpreter.go:29
↓ 1 callersFunctionunpackRecords
(data []byte, dt *DbfTable)
godbf/interpreter.go:99
↓ 1 callersMethodusesDecimalCount
usesDecimalCount indicates whether the data type describes a field that makes use of a field's decimal count setting.
godbf/field.go:66
↓ 1 callersMethodusesDecimalPlaces
()
godbf/field.go:32
↓ 1 callersFunctionverifyFieldDescriptorsAreCorrect
(tableUnderTest *DbfTable, g *GomegaWithT)
godbf/io_test.go:134
↓ 1 callersFunctionverifyRecordsAreCorrect
(tableUnderTest *DbfTable, g *GomegaWithT)
godbf/io_test.go:165
↓ 1 callersFunctionverifyTableAgainstRawBytes
(s []byte, dt *DbfTable)
godbf/interpreter.go:107
↓ 1 callersFunctionverifyTableAgainstRawFooter
(s []byte, dt *DbfTable)
godbf/interpreter.go:112
↓ 1 callersFunctionverifyTableAgainstRawHeader
(s []byte, dt *DbfTable)
godbf/interpreter.go:118
↓ 1 callersFunctionwriteContent
(dt *DbfTable, f *os.File)
godbf/io.go:53
MethodCreate
(name string)
godbf/helpers.go:23
MethodCreate
(name string)
godbf/io_test.go:278
MethodCreate
(name string)
godbf/io_test.go:304
MethodHasRecord
HasRecord returns true if the table has a record with the given number otherwise, false is returned. Use this method before FieldValue() to avoid inde
godbf/table.go:409
MethodOpen
(name string)
godbf/helpers.go:24
MethodOpen
(name string)
godbf/io_test.go:234
MethodRowIsDeleted
RowIsDeleted returns whether a row has marked as deleted
godbf/table.go:551
MethodSaveFile
Deprecated: Use SaveToFile() instead.
godbf/table.go:571
MethodStat
(name string)
godbf/helpers.go:17
MethodStat
(name string)
godbf/helpers.go:25
MethodStat
(name string)
godbf/io_test.go:252
FunctionTestDbfTable_AddBooleanField
(t *testing.T)
godbf/table_test.go:24
FunctionTestDbfTable_AddBooleanField_ErrorAfterDataEntryStart
(t *testing.T)
godbf/table_test.go:68
FunctionTestDbfTable_AddBooleanField_SecondAttemptFails
(t *testing.T)
godbf/table_test.go:53
FunctionTestDbfTable_AddBooleanField_TooLongGetsTruncated
(t *testing.T)
godbf/table_test.go:40
FunctionTestDbfTable_AddDateField
(t *testing.T)
godbf/table_test.go:87
FunctionTestDbfTable_AddFloatField
(t *testing.T)
godbf/table_test.go:141
FunctionTestDbfTable_AddNumericField
(t *testing.T)
godbf/table_test.go:121
FunctionTestDbfTable_AddRecordWithNoFieldsDefined_Errors
(t *testing.T)
godbf/table_test.go:359
FunctionTestDbfTable_AddTextField
(t *testing.T)
godbf/table_test.go:103
FunctionTestDbfTable_DecimalPlacesInField_InvalidField
(t *testing.T)
godbf/table_test.go:210
FunctionTestDbfTable_DecimalPlacesInField_NonExistentField
(t *testing.T)
godbf/table_test.go:199
FunctionTestDbfTable_DecimalPlacesInField_ValidField
(t *testing.T)
godbf/table_test.go:177
FunctionTestDbfTable_FieldDescriptor
(t *testing.T)
godbf/table_test.go:411
FunctionTestDbfTable_FieldNames
(t *testing.T)
godbf/table_test.go:161
FunctionTestDbfTable_FieldValueByName
(t *testing.T)
godbf/table_test.go:294
FunctionTestDbfTable_FieldValueByName_NonExistentField
(t *testing.T)
godbf/table_test.go:334
FunctionTestDbfTable_Float64FieldValueByName
(t *testing.T)
godbf/table_test.go:390
FunctionTestDbfTable_GetRowAsSlice
(t *testing.T)
godbf/table_test.go:252
FunctionTestDbfTable_GetRowAsSlice_InitiallyEmptyStrings
(t *testing.T)
godbf/table_test.go:223
FunctionTestDbfTable_Int64FieldValueByName
(t *testing.T)
godbf/table_test.go:369
FunctionTestDbfTable_New
For reference: https://en.wikipedia.org/wiki/.dbf#File_format_of_Level_5_DOS_dBASE
godbf/table_test.go:15
FunctionTestDbfTable_SetFieldValueByName_NonExistentField
(t *testing.T)
godbf/table_test.go:348
FunctionTestFieldsNameCorrectDetect
(t *testing.T)
godbf/io_test.go:180
FunctionTestNewFromByteArray_EndOfFieldMarkerMissing_TableParsingError
(t *testing.T)
godbf/io_test.go:102
next →1–100 of 115, ranked by callers