• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

DataStore-Introduction

This version was saved 14 years, 7 months ago View current version     Page history
Saved by Charles Jolley
on September 17, 2009 at 12:27:23 pm
 

The DataStore Framework helps you manage structured data.  You will often use it to build some or all of the model layer in your application.  It provides many of the same features found Object-Relational Mapping (ORM) tools such as in CoreData, ActiveRecord, or DataMapper in about 50K of JavaScript.

 

This programming guide will tell you everything you need to know about using the DataStore framework in your SproutCore application including how to import data from your server, work with local storage, and how to model data.

 

Who Should Read This Guide

 

You should read this guide if you plan to use the SproutCore DataStore API to store and manage data objects in your application.

 

Outline

 

  • About the DataStore - Overview of the major parts of the DataStore
  • Defining Your Model – All about creating SC.Record classes, modeling relationships, etc.
  • Using Fixtures - How to get going quickly with test data before you have a server
  • Working With Records
  • Finding Records 
  • Buffering Changes
    • NestedStores - How to buffer changes in your application
  • Connecting To Your Server
    • About DataSources- how to write the code to connect to your server
    • Fetching Data - supporting fetch()
    • DataSource Retrieving Records - supporting retrieveRecords()
    • DataSource Committing Changes - support commitRecords() [and createRecords(), updateRecords(), destroyRecords()]
  • Other Topics
    • Django Integration - get an auto-generated data model, data source, and SproutCore admin application for your Django project

 

 

Comments (0)

You don't have permission to comment on this page.