huangzhibiao/BGFMDB
BGFMDB让数据的增删改查分别只需要一行代码即可,就是这么简单任性,本库几乎支持存储ios所有基本的自带数据类型. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3626
- days_rel: n/a
- days_push: 1139
- n_releases_24m: 0
Adoption not part of the score
1440 stars · 324 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
BGFMDB is an Objective-C library built on top of FMDB/SQLite that provides object-relational mapping for iOS models, allowing CRUD operations with a single line of code. It natively supports storing nearly all iOS built-in types including collections like NSArray, NSDictionary, NSMapTable, and NSHashTable, which competing solutions like Realm and Core Data handle poorly.
Use cases
- persist iOS model objects to SQLite with one-line CRUD calls
- store collections like arrays and dictionaries directly in a local database
- find a simpler alternative to Core Data or Realm for iOS apps
- save custom object types and mixed-type arrays to a local store
- define primary keys, composite keys, and unique constraints on models
- encrypt the local SQLite database with SQLCipher
When to choose
- you are building an iOS app in Objective-C and want minimal-boilerplate SQLite persistence
- you need to persist collection types (NSArray, NSDictionary, NSMapTable, NSHashTable) that Realm does not support
- you want automatic handling of mixed-type custom objects within arrays
- you prefer Chinese documentation and a lightweight wrapper over heavyweight frameworks like RestKit or MMRecord
- you need auto-increment primary keys, composite primary keys, or unique constraints with simple class-method configuration
When to avoid
- you are writing a pure Swift project and need to persist Swift-native model classes (only Objective-C models are supported)
- you need cross-platform support beyond iOS
- you require an actively maintained library with recent commits and formal licensing
- you prefer Apple's Core Data with its ecosystem, migrations, and iCloud sync
- you need advanced ORM features like complex joins, migrations, or multi-threaded transaction control out of the box
Facets
library · maturity maintenance
database orm serialization databases mobile-development developer-tools fmdb sqlite object-mapping persistence cocoapods core-data-alternative realm-alternative chinese-documentation ios objective-c mobile cocoa
1 source
- readme: https://github.com/huangzhibiao/BGFMDB · fetched 2026-08-28 · 8c85f58566d4
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| huangzhibiao/BGFMDB | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="huangzhibiao/BGFMDB")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem