Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8391739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:20:32+00:00 2026-06-09T19:20:32+00:00

I have a SQLite database storing all of my calendar events, modeled like so:

  • 0

I have a SQLite database storing all of my calendar events, modeled like so:

TimerEvent
 *Attributes
  -date
  -dateForMark
  -reminder
 *Relationships
  -eventInfo (<->)

EventInfo
 *Attributes
  -location
  -notes
  -recurringKey
  -reminderKey
  -title
 *Relationships
  -timerEvent (<->)
  -repeat (<->>)

Repeat
 *Attributes
  -repeatDate
 *Relationships
  -eventInfo(<->>)

When you create an event, a TimerEvent is created, and the three date values are plugged in. Then, a relationship to an EventInfo entity is created, with the event’s location, title, notes, and reminder/recurring keys plugged in. If the recurring key is not -1, a Repeat entity is created based on the number of repeat dates that fall between the TimerEvent date and a date determined from user input.

My calendar than reads all of the dates, displays them, and then in my AgendaView can display all of the information from the “parent” entity (EventInfo is NOT a parent entity of Repeat. It just has a one-to-many relationship with the many repeats that could be created). An issue arises when editing… If I wanted to edit one of the repeat events, only that event (not the one’s following, or the one’s before), and i traced the Repeat object back up to the EventInfo object, changing that info would change the info for every event. I can only imagine two solutions to this:

1. Add extra NSString attributes to repeat events for when events are edited
2. Create a new event JUST for that object, nullify the existing relationship, 
   and use the repeatDate as the main date. 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:20:33+00:00Added an answer on June 9, 2026 at 7:20 pm

    Solved by creating an individual TimerEvent with it’s own EventInfo for each repeat event, added a repeatID attribute to the TimerEvent‘s, added a search for repeatID‘s in order to get all of those associated to the current event. The ID’s are generated from a new NSUserDefault key that assigns and increments every time a new repeating event is created.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an sqlite database, and I would like to keep it read-only without
I have a sqlite database where all the primary keys are GUIDs. Currently they
I have HTML page, CSS, JAVA and images all stored in my SQLite database.
In my application I have a sqlite database that looks like this: CREATE TABLE
I have an app with an SQLite database for storing information for a user's
Hi All I have a class that works with sqlite database in my application.
I have following text in SQLITE database in TEXT field The exact date of
I have an SQLite DB that's storing all coordinates + description to show them
I have a little problem with getting all data from SQLite database and showing
I have been trying to get all rows from the SQLite database. But I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.