Calendar database

(DateEnd)
Line 26: Line 26:
==== Name ====
==== Name ====
==== Colour ====
==== Colour ====
-
:''Type''
+
:{| class="wikitable"
-
::INTEGER
+
-
:''Description''
+
-
::Colour of a calendar
+
-
:''Mappings''
+
-
::{| class="wikitable"
+
|-
|-
| 0 || Dark Blue
| 0 || Dark Blue
Line 55: Line 50:
==== IsVisible ====
==== IsVisible ====
-
:''Type''
+
:{| class="wikitable"
-
:: INTEGER
+
-
:''Description''
+
-
::
+
-
:''Mappings''
+
-
::{| class="wikitable"
+
|-
|-
| 0 || not visible
| 0 || not visible
Line 69: Line 59:
==== IsReadonly ====
==== IsReadonly ====
-
:''Type''
+
:{| class="wikitable"
-
:: INTEGER
+
-
:''Description''
+
-
:: Indicates if the calendar is writeable or not.
+
-
:''Mappings''
+
-
::{| class="wikitable"
+
|-
|-
| 0 || writeable
| 0 || writeable
Line 83: Line 68:
==== CalendarType ====
==== CalendarType ====
-
:''Type''
+
:{| class="wikitable"
-
:: INTEGER
+
-
:''Description''
+
-
::
+
-
:''Mappings''
+
-
::{| class="wikitable"
+
|-
|-
| 0 || local
| 0 || local
Line 109: Line 89:
==== Id ====
==== Id ====
==== ComponentType ====
==== ComponentType ====
-
:''Type''
 
-
::INTEGER
 
-
:''Description''
 
-
:: Defines the type of a calendar component.
 
-
:''Mappings''
 
-
::{| class="wikitable"
 
-
|-
 
-
| 1 || event
 
-
|-
 
-
| 2 || task
 
-
|-
 
-
| 3 || note
 
-
|-
 
-
| 4 || birthday
 
-
|-
 
-
|}
 
-
 
==== Class ====
==== Class ====
==== Geo ====
==== Geo ====
Line 147: Line 110:
==== CalendarId ====
==== CalendarId ====
==== ComponentType ====
==== ComponentType ====
 +
:{| class="wikitable"
 +
|-
 +
| 1 || event
 +
|-
 +
| 2 || task
 +
|-
 +
| 3 || note
 +
|-
 +
| 4 || birthday
 +
|-
 +
|}
 +
==== Flags ====
==== Flags ====
==== DateStart ====
==== DateStart ====
-
:''Type''
+
:{| class="wikitable"
-
::INTEGER
+
-
:''Description''
+
-
:: Start date of a component in the Unix Time Format (number of seconds since 01/01/1970).
+
-
:''Mappings''
+
-
::{| class="wikitable"
+
|-
|-
-
| <INTEGER> || <start date>
+
| <INTEGER> || start date in Unix Time Format (number of seconds since 01/01/1970)
|-
|-
|}
|}
==== DateEnd ====
==== DateEnd ====
-
:''Type''
+
:{| class="wikitable"
-
::INTEGER
+
-
:''Description''
+
-
:: End date of a component in the Unix Time Format (number of seconds since 01/01/1970).
+
-
:''Mappings''
+
-
::{| class="wikitable"
+
|-
|-
| -1 || undefined
| -1 || undefined
|-
|-
-
| <INTEGER> || <end date>
+
| <INTEGER> || start date in Unix Time Format (number of seconds since 01/01/1970)
|-
|-
|}
|}
==== Summary ====
==== Summary ====
-
:''Type''
+
 
-
::TEXT
+
-
:''Description''
+
-
:: Title of a component
+
==== Location ====
==== Location ====
-
:''Type''
+
 
-
::TEXT
+
-
:''Description''
+
-
:: Location of a component
+
==== Description ====
==== Description ====
-
:''Type''
+
 
-
::TEXT
+
-
:''Description''
+
-
:: Comments of a component
+
==== Status ====
==== Status ====
 +
:{| class="wikitable"
 +
|-
 +
| -1 || undefined (for events and notes)
 +
|-
 +
| 0 || task uncomplete
 +
|-
 +
| 1 || task complete
 +
|-
 +
| <YYYY> || year (for birthdays)
 +
|-
 +
|}
 +
==== Uid ====
==== Uid ====
==== Until ====
==== Until ====
 +
:{| class="wikitable"
 +
|-
 +
| -1 || undefined
 +
|-
 +
| <INTEGER> || <end date>
 +
|-
 +
|}
 +
==== AllDay ====
==== AllDay ====
==== CreatedTime ====
==== CreatedTime ====

Revision as of 02:16, 20 September 2010

The calendar database can be found in /home/user/.calendar/calendardb. The goal of this wiki is to provide enough information on the calendar database in order to implement mass modifying/adding/deleting events verifying some criterias (string match in title, locations, comments for example). It could be easy then to write a small shell script using zenity and sqlite3 to perform this tasks.

If you want to help editing this wiki and writing useful informations on fields or new scripts, feel free to copy your own database on your computer and analyze it with some tools like "SQLite Database Browser" (Linux/Debian).

Contents

Scripts

Structure

Tables & fields

ALARM

Id

Trigger

Repeat

Duration

Action

CookieId

Attach

Birthdays

Id

DayMonth

Year

Calendars

CalendarId

Name

Colour

0 Dark Blue
1 Green
2 Dark Pink
3 Orange
4 Purple
5 Yellow
6 White
7 Light Blue
8 Light Pink
9 Yellow-Green

IsVisible

0 not visible
1 visible

IsReadonly

0 writeable
1 not writeable

CalendarType

0 local
1 intelligent
2
3 private
4 synchronized

CalendarTune

CalendarVersion

CalendarProfile

ComponentDetails

Id

ComponentType

Class

Geo

Priority

DateStamp

Sequence

Transparency

Uid

Url

Attach

Category

Comment

Contact

Related

Resources

Percent

Completed

Components

Id

CalendarId

ComponentType

1 event
2 task
3 note
4 birthday

Flags

DateStart

<INTEGER> start date in Unix Time Format (number of seconds since 01/01/1970)

DateEnd

-1 undefined
<INTEGER> start date in Unix Time Format (number of seconds since 01/01/1970)

Summary

Location

Description

Status

-1 undefined (for events and notes)
0 task uncomplete
1 task complete
<YYYY> year (for birthdays)

Uid

Until

-1 undefined
<INTEGER> <end date>

AllDay

CreatedTime

ModifiedTime

Tzid

TzOffset

IDMAP

LocalId

ExternalId

Instances

Id

DateStart

DateEnd

Parameters

ComponentId

PropertyType

PropertyValue

ParamName

ParamValue

RECURSIVE

Id

Rrule

Rdates

Exdates

Exrule

RecurrenceId

Rtype

TIMEZONE

Location

Tzid

DtStartStd

DtStartDst

TzOffsetStd

TzOffsetDst

RRuleStd

RRuleDst

TzName

DSTFlag

Trash

ComponentId

CalendarId

ComponentType

DeletedTime

CreatedTime

XProperties

ComponentId

XPropertyName

XPropertyValue

sqlite_sequence

name

seq

Indices

IDX_ALARM

IDX_BIRTHDAYS_DATE

IDX_BIRTHDAYS_IDS

IDX_CALENDAR

IDX_COMPONENT

IDX_DETAILS

IDX_INST

IDX_RECURSIVE

IDX_TIMEZONE

IDX_TRASH