Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter support #839

Open
alextekartik opened this issue Nov 6, 2022 · 0 comments
Open

Flutter support #839

alextekartik opened this issue Nov 6, 2022 · 0 comments

Comments

@alextekartik
Copy link

Hi and thanks for your project. FMDB is actively used in the flutter world through the sqflite plugin https://pub.dev/packages/sqflite, a cross platform SQLite solution where I am the main maintainer. Disclaimer: I'm a bad iOS/MacOS developer. I found FMDB easy to use and perfect for the situation (and the same code - objective C - is used for iOS and MacOS)

I'm using FMDB 2.7.5 although there seems to have been some updates since but I cannot figure out whether it has been published and available from Pods.

Due to the nature of flutter, I had to export an internal API:

// Import hidden method
@interface FMDatabase ()
- (void)resultSetDidClose:(FMResultSet *)resultSet;
@end

This allowed me to keep a cursor open (without getting a warning) and reuse it later (always in a inDatabase block though). I'm not sure that's correct but it works.

Do you think that it would be possible to export this method ? As a more general questions, is FMDB still maintain as it is now (I have seen some threads regarding re-building in swift so I'm not sure where it stands and how long the existing flutter solution will work).

Thanks again for your work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant