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 8999337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:10:02+00:00 2026-06-16T00:10:02+00:00

I’d like to use a native database for storage using a native plugin. Since

  • 0

I’d like to use a native database for storage using a native plugin. Since Apple’s base API is in pure C, I’d like to use a 3rd party library such as FBDB. Ideally, our javascript will construct the ‘query’ and send it over to our native plugin for handling but this isn’t absolutely necessary.

  1. How do I go about importing a 3rd party library for use? What parts of the FMDB library will I want to include & how do I go about adding libsqlite3.dylib? Should FMDB target the ForgeModule and ForgeModuleResources as well? I’ve looked at the docs concerning this but am having difficulty applying those instructions to FMDB specifically.

  2. Can you give me a more detailed idea of what a good file structure would look like for this?

  3. Would you even recommend using FMDB, are there alternative options that would work better with trigger? Additionally, ForgeInspector does ARC correct?

Basically I’m looking for an outline to follow as well as a sqlite wrapper recommendation.

Thanks!

  • 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-16T00:10:02+00:00Added an answer on June 16, 2026 at 12:10 am
    1. Including third party code to your iOS plugin is covered here: http://docs.trigger.io/en/v1.4/modules/native/external_libraries.html#ios.

      To use FMDB, you should include the repo and copy the .h and .m files into your ForgeModule project (remember to add the files to your ForgeModule target):

      add FMDB files to project

      Next, add the libsqlite3.dylib framework to both the ForgeModule target (in the ForgeModule project) and the ForgeInspector target (in the ForgeInspector project):

      add libsqlite framework

      You’ll also need to disable ARC for fmdb.m (also shown above).

      After that you should be able to import the FMDB headers and use the ForgeInspector to try out your plugin.

      Note that when it comes to uploading versions of the plugins, you’ll need to add an iOS build step to include the SQLite framework – see http://docs.trigger.io/en/v1.4/modules/native/native_build_steps.html#add-ios-system-framework.

    2. If your plugin is called fmdb (we’d recommend namespacing it more, to avoid conflicts), you must have fmdb_API.h and fmdb_API.m – I normally put them inside their own group, and inside their own folder. I’d also put 3rd party code in its own group and folder, e.g.:

      % find fmdb FMDB_lib
      fmdb
      fmdb/fmdb_API.h
      fmdb/fmdb_API.m
      FMDB_lib
      FMDB_lib/FMDatabase.h
      FMDB_lib/FMDatabase.m
      FMDB_lib/FMDatabaseAdditions.h
      FMDB_lib/FMDatabaseAdditions.m
      FMDB_lib/FMDatabasePool.h
      FMDB_lib/FMDatabasePool.m
      FMDB_lib/FMDatabaseQueue.h
      FMDB_lib/FMDatabaseQueue.m
      FMDB_lib/fmdb.m
      FMDB_lib/FMResultSet.h
      FMDB_lib/FMResultSet.m
      
    3. We haven’t used FMDB internally, so don’t have loads of experience with it. However, I do know that trying to shoe-horn C-centric APIs into Objective-C code is pretty painful (I’m thinking of AddressBook.framework). FMDB aims to solve that for SQLite, so it seems like a good idea.

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

Sidebar

Related Questions

I'm making a simple page using Google Maps API 3. My first. One marker
Let's say I'm outputting a post title and in our database, it's Hello Y’all
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
For some reason, after submitting a string like this Jack’s Spindle from a text
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am trying to understand how to use SyndicationItem to display feed which is
I've got a string that has curly quotes in it. I'd like to replace
I would like to run a str_replace or preg_replace which looks for certain words
I am trying to render a haml file in a javascript response like so:

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.