Skip to content

Generate iOS & Android DB CRUD Code for sqlite database. Generate fmdb wrapper for iOS, SQLiteAssetHelper wrapper for Android.

Notifications You must be signed in to change notification settings

thehung111/iosAndroidDBCodeGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRUD DB Code Generator for Android & iOS

The aim of this project is to generate basic CRUD code for both Android/iOS for local sqlite database access so that the code can be shared between the 2 platforms.

Setup

This application is developed using ExpressJS 3.0.

  1. First install Node.JS & Express.
  2. Run the app with "node app.js" .
  3. Access the server app via http://localhost:3000 after installing.

Instructions

  1. Create a SQLite Database.
  2. Update configuration path under config folder > index.js. Update dbPath to point to the created database.
  3. The default test database is under db folder(test.db)
  4. Currently only supported TEXT/NUMERIC/REAL column data types generation. There must not be spaces or special characters for the table and column names;
  5. This project generate fmdb wrapper model/crud code for iOS, and SQLiteAssetHelper wrapper for Android.
  6. The code templates are put under the template folder. All special parameters are marked with {{template_Variable}}
  7. <li>Majority of the code generation is put under viewtable.ejs</li>
    

About

Generate iOS & Android DB CRUD Code for sqlite database. Generate fmdb wrapper for iOS, SQLiteAssetHelper wrapper for Android.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published