esent

package
v0.0.0-...-d5bf94b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Byt recordTyp = iota
	Tup
	Str
	Nil
	Bit
	UnsByt
	Short
	Long
	Curr
	IEEESingl
	IEEEDoub
	DateTim
	Bin
	Txt
	LongBin
	LongTxt
	SLV
	UnsLng
	LngLng
	Guid
	UnsShrt
	Max
)

Data types possible in an esent database

View Source
const CATALOG_BACKUP_FDP = 3
View Source
const CATALOG_BACKUP_PAGE_NUMBER = 24
View Source
const CATALOG_FDP = 2
View Source
const CATALOG_PAGE_NUMBER = 4
View Source
const CATALOG_TYPE_CALLBACK = 5
View Source
const CATALOG_TYPE_COLUMN = 2
View Source
const CATALOG_TYPE_INDEX = 3
View Source
const CATALOG_TYPE_LONG_VALUE = 4
View Source
const CATALOG_TYPE_TABLE = 1

Catalog Types

View Source
const CODEPAGE_ASCII = 20127
View Source
const CODEPAGE_ASCII_S = "ascii"
View Source
const CODEPAGE_UNICODE = 1200

Code pages

View Source
const CODEPAGE_UNICODE_S = "utf-16le"
View Source
const CODEPAGE_WESTERN = 1252
View Source
const CODEPAGE_WESTERN_s = "cp1252"
View Source
const DATABASE_FDP = 1

Fixed FatherDataPages

View Source
const DATABASE_PAGE_NUMBER = 1

Fixed Page Numbers

View Source
const FILE_TYPE_DATABASE = 0
View Source
const FILE_TYPE_STREAMING_FILE = 1
View Source
const FLAGS_EMPTY = 8
View Source
const FLAGS_INDEX = 0x40
View Source
const FLAGS_LEAF = 2
View Source
const FLAGS_LONG_VALUE = 0x80
View Source
const FLAGS_NEW_CHECKSUM = 0x2000
View Source
const FLAGS_NEW_FORMAT = 0x2000
View Source
const FLAGS_PARENT = 4
View Source
const FLAGS_ROOT = 1

Page Flags

View Source
const FLAGS_SPACE_TREE = 0x20
View Source
const JET_coltypBinary = 9
View Source
const JET_coltypBit = 1
View Source
const JET_coltypCurrency = 5
View Source
const JET_coltypDateTime = 8
View Source
const JET_coltypGUID = 16
View Source
const JET_coltypIEEEDouble = 7
View Source
const JET_coltypIEEESingle = 6
View Source
const JET_coltypLong = 4
View Source
const JET_coltypLongBinary = 11
View Source
const JET_coltypLongLong = 15
View Source
const JET_coltypLongText = 12
View Source
const JET_coltypMax = 18
View Source
const JET_coltypNil = 0

Column Types

View Source
const JET_coltypSLV = 13
View Source
const JET_coltypShort = 3
View Source
const JET_coltypText = 10
View Source
const JET_coltypUnsignedByte = 2
View Source
const JET_coltypUnsignedLong = 14
View Source
const JET_coltypUnsignedShort = 17
View Source
const JET_dbstateBeingConverted = 4
View Source
const JET_dbstateCleanShutdown = 3
View Source
const JET_dbstateDirtyShutdown = 2
View Source
const JET_dbstateForceDetach = 5
View Source
const JET_dbstateJustCreated = 1

Database state

View Source
const TAGGED_DATA_TYPE_COMPRESSED = 2
View Source
const TAGGED_DATA_TYPE_MULTI_VALUE = 8
View Source
const TAGGED_DATA_TYPE_STORED = 4
View Source
const TAGGED_DATA_TYPE_VARIABLE_SIZE = 1

Tagged Data Type Flags

View Source
const TAGGED_DATA_TYPE_WHO_KNOWS = 10
View Source
const TAG_COMMON = 0x4
View Source
const TAG_DEFUNCT = 0x2
View Source
const TAG_UNKNOWN = 0x1

Tag Flags

Variables

This section is empty.

Functions

This section is empty.

Types

type Cursor

type Cursor struct {
	CurrentTag           uint32
	FatherDataPageNumber uint32
	CurrentPageData      *esent_page
	TableData            *table
}

type Esedb

type Esedb struct {
	// contains filtered or unexported fields
}

func (*Esedb) GetNextRow

func (e *Esedb) GetNextRow(c *Cursor) (Esent_record, error)

func (Esedb) Init

func (e Esedb) Init(fn string) (Esedb, error)

func (*Esedb) OpenTable

func (e *Esedb) OpenTable(s string) (*Cursor, error)

OpenTable opens a table, and returns a cursor pointing to the current parsing state

type Esent_record

type Esent_record struct {
	// contains filtered or unexported fields
}

func NewRecord

func NewRecord(i int) Esent_record

func (*Esent_record) DeleteColumn

func (e *Esent_record) DeleteColumn(c string)

func (*Esent_record) GetBytVal

func (e *Esent_record) GetBytVal(column string) ([]byte, bool)

func (*Esent_record) GetLongVal

func (e *Esent_record) GetLongVal(column string) (int32, bool)

func (*Esent_record) GetNilRecord

func (e *Esent_record) GetNilRecord(column string) *esent_recordVal

func (*Esent_record) GetRecord

func (e *Esent_record) GetRecord(column string) *esent_recordVal

func (*Esent_record) NewVal

func (r *Esent_record) NewVal(column string) *esent_recordVal

func (*Esent_record) SetString

func (e *Esent_record) SetString(column string, codePage uint32) error

SetString sets the codepage of the specified column on the record, and marks the record as a 'string'

func (*Esent_record) StrVal

func (e *Esent_record) StrVal(column string) (string, error)

func (*Esent_record) UnpackInline

func (e *Esent_record) UnpackInline(column string, t columns_catalog_data_definition_entry)

func (*Esent_record) UpdateBytVal

func (e *Esent_record) UpdateBytVal(b []byte, column string)

type OrderedMap_esent_leaf_entry

type OrderedMap_esent_leaf_entry struct {
	// contains filtered or unexported fields
}

func (*OrderedMap_esent_leaf_entry) Add

func (o *OrderedMap_esent_leaf_entry) Add(key string, value esent_leaf_entry)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL