dal

package
v0.0.0-...-ec65845 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BSSyncronyMetadata

type BSSyncronyMetadata struct {
	UUID  string `db:"uuid"`
	Value []byte `db:"value"`
}

BSSyncronyMetadata struct

type DB

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

create a DB struct

func New

func New(path string) *DB

func (*DB) Close

func (db *DB) Close()

func (*DB) ReadAllTasks

func (db *DB) ReadAllTasks() (*[]TMTask, error)

type Meta

type Meta struct {
	Key   string `db:"key"`
	Value string `db:"value"`
}

Meta struct

type NullIntTime

type NullIntTime struct {
	Time  time.Time
	Valid bool
}

Time is stored as int. Unix Time Seconds

func (*NullIntTime) Scan

func (d *NullIntTime) Scan(value interface{}) error

func (*NullIntTime) String

func (d *NullIntTime) String() string

func (NullIntTime) Value

func (d NullIntTime) Value() (driver.Value, error)

Support either int or float for date

type NullRealTime

type NullRealTime struct {
	Time  time.Time
	Valid bool
}

Time is stored as REAL, Days since 24 Nov 4714 BC.

func (*NullRealTime) Scan

func (d *NullRealTime) Scan(value interface{}) error

func (*NullRealTime) String

func (d *NullRealTime) String() string

func (NullRealTime) Value

func (d NullRealTime) Value() (driver.Value, error)

Support either int or float for date

type TMArea

type TMArea struct {
	UUID         string `db:"uuid"`
	Title        string `db:"title"`
	Visible      int    `db:"visible"`
	Index        int    `db:"index"`
	CachedTags   []byte `db:"cachedTags"`
	Experimental []byte `db:"experimental"`
}

TMArea struct

type TMAreaTag

type TMAreaTag struct {
	Areas string `db:"areas"`
	Tags  string `db:"tags"`
}

TMAreaTag struct

type TMChecklistItem

type TMChecklistItem struct {
	UUID                 string  `db:"uuid"`
	UserModificationDate float64 `db:"userModificationDate"`
	CreationDate         float64 `db:"creationDate"`
	Title                string  `db:"title"`
	Status               int     `db:"status"`
	StopDate             float64 `db:"stopDate"`
	Index                int     `db:"index"`
	Task                 string  `db:"task"`
	LeavesTombstone      int     `db:"leavesTombstone"`
	Experimental         []byte  `db:"experimental"`
}

TMChecklistItem struct

type TMCommand

type TMCommand struct {
	UUID         string  `db:"uuid"`
	CreationDate float64 `db:"creationDate"`
	Type         int     `db:"type"`
	Info         []byte  `db:"info"`
}

TMCommand struct

type TMContact

type TMContact struct {
	UUID            string `db:"uuid"`
	DisplayName     string `db:"displayName"`
	FirstName       string `db:"firstName"`
	LastName        string `db:"lastName"`
	Emails          string `db:"emails"`
	AppleAddresssID string `db:"appleAddressBookId"`
	Index           int    `db:"index"`
}

TMContact struct

type TMMetaItem

type TMMetaItem struct {
	UUID  string `db:"uuid"`
	Value []byte `db:"value"`
}

TMMetaItem struct

type TMSettings

type TMSettings struct {
	UUID               string  `db:"uuid"`
	LogInterval        int     `db:"logInterval"`
	ManualLogDate      float64 `db:"manualLogDate"`
	GroupTodayByParent int     `db:"groupTodayByParent"`
	URISchemeAuthToken string  `db:"uriSchemeAuthenticationToken"`
	Experimental       []byte  `db:"experimental"`
}

TMSettings struct

type TMTag

type TMTag struct {
	UUID         string       `db:"uuid"`
	Title        string       `db:"title"`
	Shortcut     *string      `db:"shortcut"`
	UsedDate     NullRealTime `db:"usedDate"`
	Parent       *string      `db:"parent"`
	Index        int          `db:"index"`
	Experimental []byte       `db:"experimental"`
}

TMTag struct

type TMTask

type TMTask struct {
	UUID                 string       `db:"uuid"`
	LeavesTombstone      int          `db:"leavesTombstone"`
	CreationDate         NullRealTime `db:"creationDate"`
	UserModificationDate NullRealTime `db:"userModificationDate"`
	Type                 int          `db:"type"`
	Status               int          `db:"status"`
	StopDate             NullRealTime `db:"stopDate"`
	Trashed              int          `db:"trashed"`
	Title                string       `db:"title"`
	Notes                string       `db:"notes"`
	NotesSync            int          `db:"notesSync"`
	CachedTags           []byte       `db:"cachedTags"`

	Start                           int          `db:"start"`
	StartDate                       NullIntTime  `db:"startDate"`
	StartBucket                     int          `db:"startBucket"`
	ReminderTime                    NullIntTime  `db:"reminderTime"`
	LastReminderInteractionDate     NullRealTime `db:"lastReminderInteractionDate"`
	Deadline                        NullIntTime  `db:"deadline"`
	DeadlineSuppressionDate         NullIntTime  `db:"deadlineSuppressionDate"`
	T2DeadlineOffset                int          `db:"t2_deadlineOffset"`
	Index                           int          `db:"index"`
	TodayIndex                      int          `db:"todayIndex"`
	TodayIndexReferenceDate         NullIntTime  `db:"todayIndexReferenceDate"`
	Area                            *string      `db:"area"`
	Project                         *string      `db:"project"`
	Heading                         *string      `db:"heading"`
	Contact                         *string      `db:"contact"`
	UntrashedLeafActionsCount       int          `db:"untrashedLeafActionsCount"`
	OpenUntrashedLeafActionsCount   int          `db:"openUntrashedLeafActionsCount"`
	ChecklistItemsCount             int          `db:"checklistItemsCount"`
	OpenChecklistItemsCount         int          `db:"openChecklistItemsCount"`
	RT1RepeatingTemplate            *string      `db:"rt1_repeatingTemplate"`
	RT1RecurrenceRule               []byte       `db:"rt1_recurrenceRule"`
	RT1InstanceCreationStartDate    NullIntTime  `db:"rt1_instanceCreationStartDate"`
	RT1InstanceCreationPaused       *int         `db:"rt1_instanceCreationPaused"`
	RT1InstanceCreationCount        *int         `db:"rt1_instanceCreationCount"`
	RT1AfterCompletionReferenceDate NullIntTime  `db:"rt1_afterCompletionReferenceDate"`
	RT1NextInstanceStartDate        NullIntTime  `db:"rt1_nextInstanceStartDate"`
	Experimental                    []byte       `db:"experimental"`
	Repeater                        []byte       `db:"repeater"`
	RepeaterMigrationDate           NullRealTime `db:"repeaterMigrationDate"`
	Tags                            []TMTag      `db:"-"`
}

TMTask struct

type TMTaskTag

type TMTaskTag struct {
	Tasks string `db:"tasks"`
	Tags  string `db:"tags"`
}

TMTaskTag struct

type TMTombstone

type TMTombstone struct {
	UUID              string  `db:"uuid"`
	DeletionDate      float64 `db:"deletionDate"`
	DeletedObjectUUID string  `db:"deletedObjectUUID"`
}

TMTombstone struct

type ThingsTouchExtensionCommandStoreCommands

type ThingsTouchExtensionCommandStoreCommands struct {
	ID   int    `db:"id"`
	Type string `db:"type"`
	Body []byte `db:"body"`
}

ThingsTouch_ExtensionCommandStore_Commands struct

type ThingsTouchExtensionCommandStoreMeta

type ThingsTouchExtensionCommandStoreMeta struct {
	Key   string `db:"key"`
	Value []byte `db:"value"`
}

ThingsTouch_ExtensionCommandStore_Meta struct

Jump to

Keyboard shortcuts

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