database

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type GetEntriesRow

type GetEntriesRow struct {
	Zuuid                  sql.NullString
	Zcreationdate          sql.NullString
	Zmodifieddate          sql.NullString
	Ztimezone              []byte
	Zduration              sql.NullInt64
	Zispinned              sql.NullInt64
	Zstarred               sql.NullInt64
	Zisallday              sql.NullInt64
	Zmarkdowntext          sql.NullString
	Zeditingtime           sql.NullFloat64
	Zcreationdevice        sql.NullString
	Zcreationdevicetype    sql.NullString
	Zcreationdevicemodel   sql.NullString
	Zcreationosname        sql.NullString
	Zcreationosversion     sql.NullString
	Tags                   sql.NullString
	Zlocation              sql.NullInt64
	Zuserlabel             sql.NullString
	Zlatitude              sql.NullFloat64
	Zlongitude             sql.NullFloat64
	Zaltitude              sql.NullFloat64
	Zplacename             sql.NullString
	Zlocalityname          sql.NullString
	Zadministrativearea    sql.NullString
	Zcountry               sql.NullString
	Zweather               sql.NullInt64
	Zconditionsdescription sql.NullString
	Zmoonphase             sql.NullFloat64
	Zmoonphasecode         sql.NullString
	Zpressuremb            sql.NullFloat64
	Zrelativehumidity      sql.NullFloat64
	Zsunrisedate           sql.NullString
	Zsunsetdate            sql.NullString
	Ztemperaturecelsius    sql.NullFloat64
	Zvisibilitykm          sql.NullFloat64
	Zweathercode           sql.NullString
	Zweatherservicename    sql.NullString
	Zwindbearing           sql.NullFloat64
	Zwindspeedkph          sql.NullFloat64
}

type GetPhotosRow

type GetPhotosRow struct {
	Zuuid       sql.NullString
	Ztype       sql.NullString
	Zfilename   sql.NullString
	Zidentifier sql.NullString
	Zmd5        sql.NullString
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) GetEntries

func (q *Queries) GetEntries(ctx context.Context, zname sql.NullString) ([]GetEntriesRow, error)

func (*Queries) GetPhotos

func (q *Queries) GetPhotos(ctx context.Context) ([]GetPhotosRow, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

type Z14TAG added in v1.2.5

type Z14TAG struct {
	Z14entries sql.NullInt64
	Z55tags1   sql.NullInt64
}

type ZATTACHMENT

type ZATTACHMENT struct {
	ZPk                                 int64
	ZEnt                                sql.NullInt64
	ZOpt                                sql.NullInt64
	Zfavorite                           sql.NullInt64
	Zfilesize                           sql.NullInt64
	Zhasdata                            sql.NullInt64
	Zheight                             sql.NullInt64
	Zorderinentry                       sql.NullInt64
	Zwidth                              sql.NullInt64
	Zentry                              sql.NullInt64
	Zlocation                           sql.NullInt64
	Zthumbnail                          sql.NullInt64
	Zisrecording                        sql.NullInt64
	Zissketch                           sql.NullInt64
	Ziso                                sql.NullInt64
	Zbookbackcover                      sql.NullInt64
	Zbookfrontcover                     sql.NullInt64
	ZFokBookfrontcover                  sql.NullInt64
	ZFokBookbackcover                   sql.NullInt64
	Zdate                               sql.NullTime
	Zduration                           sql.NullFloat64
	Zlastappleidentifierupdateerrordate sql.NullTime
	Zlastmediamatchattemptdate          sql.NullTime
	Zusermodifieddate                   sql.NullTime
	Zexposurebiasvalue                  sql.NullFloat64
	Zapplecloudidentifier               sql.NullString
	Zapplelocalidentifier               sql.NullString
	Zcreationdevice                     sql.NullString
	Zcreationdeviceidentifier           sql.NullString
	ZdoEntityname                       sql.NullString
	Zidentifier                         sql.NullString
	Zmd5                                sql.NullString
	Zrecordingdevice                    sql.NullString
	Ztype                               sql.NullString
	Zaudiochannels                      sql.NullString
	Zformat                             sql.NullString
	Zsamplerate                         sql.NullString
	Ztimezonename                       sql.NullString
	Ztitle                              sql.NullString
	Ztranscription                      sql.NullString
	Zpdfname                            sql.NullString
	Zcameramake                         sql.NullString
	Zcameramodel                        sql.NullString
	Zcaption                            sql.NullString
	Zfilename                           sql.NullString
	Zfnumber                            sql.NullString
	Zfocallength                        sql.NullString
	Zlensmake                           sql.NullString
	Zlensmodel                          sql.NullString
	Zsourceidentifier                   sql.NullString
	Zembed                              sql.NullInt64
}

type ZENTRY

type ZENTRY struct {
	ZPk                             int64
	ZEnt                            sql.NullInt64
	ZOpt                            sql.NullInt64
	Zchecklistcompleteditems        sql.NullInt64
	Zchecklisttotalitems            sql.NullInt64
	Zduration                       sql.NullInt64
	Zgregorianday                   sql.NullInt64
	Zgregorianmonth                 sql.NullInt64
	Zgregorianyear                  sql.NullInt64
	Zisallday                       sql.NullInt64
	Zisdraft                        sql.NullInt64
	Zispinned                       sql.NullInt64
	Zstarred                        sql.NullInt64
	Zbook                           sql.NullInt64
	Zjournal                        sql.NullInt64
	Zlocation                       sql.NullInt64
	Zmusic                          sql.NullInt64
	Zremoteentry                    sql.NullInt64
	Zrestorationjournal             sql.NullInt64
	Ztemplate                       sql.NullInt64
	Zuseractivity                   sql.NullInt64
	Zvisit                          sql.NullInt64
	Zweather                        sql.NullInt64
	Zcreationdate                   sql.NullString
	Zeditingtime                    sql.NullFloat64
	Zmodifieddate                   sql.NullString
	Znormalizedgmtdate              sql.NullTime
	Zchangeid                       sql.NullString
	Zcreationdevice                 sql.NullString
	Zcreationdevicemodel            sql.NullString
	Zcreationdevicetype             sql.NullString
	Zcreationosname                 sql.NullString
	Zcreationosversion              sql.NullString
	Zentrytype                      sql.NullString
	Zfeatureflagsstring             sql.NullString
	Zgregoriansectionkey            sql.NullString
	Zlasteditingdeviceid            sql.NullString
	Zlasteditingdevicename          sql.NullString
	Zmarkdowntext                   sql.NullString
	Zpromptid                       sql.NullString
	Zrichtextjson                   sql.NullString
	Zsourcestring                   sql.NullString
	Zunreadmarkerid                 sql.NullString
	Zuuid                           sql.NullString
	Zcreator                        []byte
	Zpublishurl                     []byte
	Ztimezone                       []byte
	Zcommentsdisabled               sql.NullInt64
	Zcommentsnotificationsdisabled  sql.NullInt64
	Zoptoutofautomaticsyncuntildate sql.NullTime
}

type ZJOURNAL

type ZJOURNAL struct {
	ZPk                                  int64
	ZEnt                                 sql.NullInt64
	ZOpt                                 sql.NullInt64
	Zaddlocationtonewentries             sql.NullInt64
	Zcolorhex                            sql.NullInt64
	Zcommentsenabled                     sql.NullInt64
	Zconceal                             sql.NullInt64
	Zhascheckedforremotejournal          sql.NullInt64
	Zhidden                              sql.NullInt64
	Zimporting                           sql.NullInt64
	Zistrashjournal                      sql.NullInt64
	Zlocalonly                           sql.NullInt64
	Zplaceholderforencryptedjournal      sql.NullInt64
	Zreadonly                            sql.NullInt64
	Zshouldbeincludedinonthisday         sql.NullInt64
	Zshouldbeincludedinstreaks           sql.NullInt64
	Zshouldbeincludedintodayview         sql.NullInt64
	Zshouldrotatekeys                    sql.NullInt64
	Zshouldsuppressuserpushnotifications sql.NullInt64
	Zsortorder                           sql.NullInt64
	Ztype                                sql.NullInt64
	Zwantsencryption                     sql.NullInt64
	Zsharedjournalinfo                   sql.NullInt64
	Zdirtymodificationdate               sql.NullTime
	Zlasttrashedentriessyncdate          sql.NullTime
	Zrestrictedjournalexpirationdate     sql.NullTime
	Zactivekeyfingerprint                sql.NullString
	Zjournaldescription                  sql.NullString
	Zname                                sql.NullString
	Zownerid                             sql.NullString
	Zsharepermissions                    sql.NullString
	Zsortmode                            sql.NullString
	Zsyncjournalid                       sql.NullString
	Zsyncuploadbaseurl                   sql.NullString
	Ztemplateid                          sql.NullString
	Zuuidforauxiliarysync                sql.NullString
	Zconnectedservices                   []byte
	Zcroppedcoverimagedata               []byte
	Zoriginalcoverimagedata              []byte
	Zvaultkey                            []byte
}

type ZLOCATION

type ZLOCATION struct {
	ZPk                 int64
	ZEnt                sql.NullInt64
	ZOpt                sql.NullInt64
	Zfloorlevel         sql.NullInt64
	Zusersetmanually    sql.NullInt64
	Zattachment         sql.NullInt64
	Z2Attachment        sql.NullInt64
	Zaltitude           sql.NullFloat64
	Zheading            sql.NullFloat64
	Zlatitude           sql.NullFloat64
	Zlongitude          sql.NullFloat64
	Zspeed              sql.NullFloat64
	Zaddress            sql.NullString
	Zadministrativearea sql.NullString
	Zcountry            sql.NullString
	Zlocalityname       sql.NullString
	Zplacename          sql.NullString
	Ztimezonename       sql.NullString
	Zuserlabel          sql.NullString
	Zusertype           sql.NullString
	Zregion             []byte
	Zembed              sql.NullInt64
}

type ZTAG

type ZTAG struct {
	ZPk             int64
	ZEnt            sql.NullInt64
	ZOpt            sql.NullInt64
	Zname           sql.NullString
	Znormalizedname sql.NullString
}

type ZWEATHER

type ZWEATHER struct {
	ZPk                    int64
	ZEnt                   sql.NullInt64
	ZOpt                   sql.NullInt64
	Zentry                 sql.NullInt64
	Zmoonphase             sql.NullFloat64
	Zpressuremb            sql.NullFloat64
	Zrelativehumidity      sql.NullFloat64
	Zsunrisedate           sql.NullString
	Zsunsetdate            sql.NullString
	Ztemperaturecelsius    sql.NullFloat64
	Zvisibilitykm          sql.NullFloat64
	Zwindbearing           sql.NullFloat64
	Zwindchillcelsius      sql.NullFloat64
	Zwindspeedkph          sql.NullFloat64
	Zconditionsdescription sql.NullString
	Zmoonphasecode         sql.NullString
	Zweathercode           sql.NullString
	Zweatherservicename    sql.NullString
}

Jump to

Keyboard shortcuts

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