Coder Social home page Coder Social logo

mokkun / as3-spod Goto Github PK

View Code? Open in Web Editor NEW

This project forked from simonrichardson/as3-spod

0.0 2.0 0.0 982 KB

AS3/AIR Spod api for Simple Persistent Objects Database Library

Home Page: http://www.simonrichardson.info

License: MIT License

ActionScript 100.00%

as3-spod's Introduction

AS3-Spod

AS3/AIR Spod api for Simple Persistent Objects Database Library

Open a database:


const resouce : File = File.applicationStorageDirectory.resolvePath('session.db');

const manager : SpodManager = new SpodManager();
manager.open(resource, true);

Create a table of Users:


const database : SpodDatabase = maganger.database;
database.createTable(User);

Insert a new User:


const table : SpodTable = database.getTable(User);
const user : User = new User('Fred', 28);
table.insert(user);

Update a User with a new age (getting old!):


user.age = 29;
user.update();

Delete a User:


user.remove();

Sync a User with a database in case some other program is editing the db:


user.sync();

There’s much more, if you want to help then get forking and send pull requests.

AS3-Spod uses the MIT license.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.