All Projects → huangzhibiao → Bgdb_oc

huangzhibiao / Bgdb_oc

BGDB OC版震撼出世.

Labels

Projects that are alternatives of or similar to Bgdb oc

Eosio sql plugin
EOSIO sql database plugin
Stars: ✭ 21 (-53.33%)
Mutual labels:  sqlite
Swarm To Sqlite
Create a SQLite database containing your checkin history from Foursquare Swarm
Stars: ✭ 35 (-22.22%)
Mutual labels:  sqlite
Rusqlite
Ergonomic bindings to SQLite for Rust
Stars: ✭ 1,008 (+2140%)
Mutual labels:  sqlite
Tbls
tbls is a CI-Friendly tool for document a database, written in Go.
Stars: ✭ 940 (+1988.89%)
Mutual labels:  sqlite
Sqlite.swift
A type-safe, Swift-language layer over SQLite3.
Stars: ✭ 7,975 (+17622.22%)
Mutual labels:  sqlite
Sqlitemanager
Sqlite Manager is a Dev Debug tool that helps to view/add/remove/edit data your android Sqlite Database in-app with ease. (supports Custom queries aswell)
Stars: ✭ 37 (-17.78%)
Mutual labels:  sqlite
Sqlite Android
Android SQLite support library
Stars: ✭ 877 (+1848.89%)
Mutual labels:  sqlite
Laravel
Muito conteúdo sobre o framework Laravel. Controllers, Models, Views, Blade, Migrations, Seeders, Middlewares, Autenticação, Autorização, Providers, pacotes, laravel 8, etc.
Stars: ✭ 43 (-4.44%)
Mutual labels:  sqlite
Androidroom
Android example to show how to use Room to access SQLite database on device for reading and writing data. This example also shows how to use LiveData and ViewModel with Room to build reactive, well performing and easy to maintain applications.
Stars: ✭ 36 (-20%)
Mutual labels:  sqlite
Sqlitelib
Easily build a custom SQLite static library for use in macOS and iOS frameworks and apps.
Stars: ✭ 38 (-15.56%)
Mutual labels:  sqlite
Zeeql3
The ZeeQL (EOF/CoreData/AR like) Database Toolkit for Swift
Stars: ✭ 29 (-35.56%)
Mutual labels:  sqlite
Cancer Donation Portal Python Flask App
Flask App for Cancer Donation Portal using basic Python, SQLite3, HTML, CSS and Javascript
Stars: ✭ 32 (-28.89%)
Mutual labels:  sqlite
Goqu
SQL builder and query library for golang
Stars: ✭ 984 (+2086.67%)
Mutual labels:  sqlite
Sqliteef6migrations
System.Data.SQLite.EntityFramework.Migrations - Migrations for SQLite Entity Framework provider
Stars: ✭ 27 (-40%)
Mutual labels:  sqlite
Android Debug Database
A library for debugging android databases and shared preferences - Make Debugging Great Again
Stars: ✭ 7,946 (+17557.78%)
Mutual labels:  sqlite
Android dbinspector
Android library for viewing and sharing in app databases.
Stars: ✭ 881 (+1857.78%)
Mutual labels:  sqlite
Sqlite Global Tool
SQLite .NET Core CLI tool that allows the user to manually enter and execute SQL statements with or without showing query result.
Stars: ✭ 37 (-17.78%)
Mutual labels:  sqlite
Ensembl Hive
EnsEMBL Hive - a system for creating and running pipelines on a distributed compute resource
Stars: ✭ 44 (-2.22%)
Mutual labels:  sqlite
Perfect Sqlite
A stand-alone Swift wrapper around the SQLite 3 client library.
Stars: ✭ 42 (-6.67%)
Mutual labels:  sqlite
Iobroker.sql
Store history data in SQL Database: MySQL, PostgreSQL or SQLite
Stars: ✭ 37 (-17.78%)
Mutual labels:  sqlite

本库将停止维护,现主要以BGFMDB为主.

使用说明.

CocoaPods方式

Podfile

platform :ios, '8.0'
target '工程名称' do
pod ‘BGDB_OC’, '~> 1.9’
end

手动导入

1.直接下载库源码
2.添加所需依赖库:libsqlite3

导入头文件

/**
只要在自己的类中导入了BGDB.h这个头文件,本类就具有了存储功能.
*/
#import <Foundation/Foundation.h>
#import "BGDB.h"

主键

/**
本库自带的自动增长主键.
*/
@property(nonatomic,strong)NSNumber* ID;

唯一约束

/**
 想要定义'唯一约束',实现该函数返回相应的key即可.
 */
+(NSArray *)bg_uniqueKeys{
    return @[@"name"];
}

存储

/**
存储.
*/
[p bg_save];

/**
 存储.
 当有'唯一约束'时使用此API存储会更方便些,此API会自动判断如果同一约束数据已存在则更新,没有则存储.
 */
[p bg_saveOrUpdate];

/**
忽略某些属性存储.
*/
[p bg_saveIgnoredkeys:@[@"name",@"age",@"dog->name",@"dog->age"]];

更新

/**
更新(条件语句跟sqlite原生的一样).
 */
[p bg_updateWhere:@"where name='大哥哥' and dog->name='二哈'"];

/**
忽略某些属性不要更新(条件语句跟sqlite原生的一样).
*/
[p bg_updateWhere:@"where age=26 and dog->name='二哈111'" ignoredkeys:@[@"name",@"dog->name",@"dog->age"]];

/**
sql语句批量更新设置.
*/
[People bg_updateSet:@"set name='黄芝标' where age=26"];

查询

/**
 查询全部.
*/
NSArray* All = [People bg_findAll];

/**
条件查询(条件语句跟sqlite原生的一样).
*/
NSArray* pSome = [People bg_findWhere:@"where age=26 or dog->name='二哈'"];

删除.

/**
条件删除(条件语句跟sqlite原生的一样).
*/
[People bg_deleteWhere:@"where name='黄芝标'"];

字典转模型

/**
在只需要字典转模型功能的情况下,可以不必要再引入MJExtension那么多文件,造成代码冗余,缩减安装包.
用法跟MJExtension一样.
*/
+(id)bg_objectWithKeyValues:(id)keyValues;
+(id)bg_objectWithDictionary:(NSDictionary*)dictionary;

更多功能请下载demo运行测试使用.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].