{"id":15067021,"url":"https://github.com/yashthaker7/tydb","last_synced_at":"2026-03-18T01:32:06.087Z","repository":{"id":56923521,"uuid":"106907256","full_name":"yashthaker7/TYDB","owner":"yashthaker7","description":"Simplest SQLite manager for iOS.","archived":false,"fork":false,"pushed_at":"2018-06-27T12:40:54.000Z","size":43,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T12:39:27.955Z","etag":null,"topics":["ios","objective-c","sqlite","sqlite-database","sqlite3","sqlitemanger","swift","swift4","tydb","xcode"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yashthaker7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-14T07:18:45.000Z","updated_at":"2018-12-29T06:22:59.000Z","dependencies_parsed_at":"2022-08-21T05:20:21.309Z","dependency_job_id":null,"html_url":"https://github.com/yashthaker7/TYDB","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashthaker7%2FTYDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashthaker7%2FTYDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashthaker7%2FTYDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashthaker7%2FTYDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yashthaker7","download_url":"https://codeload.github.com/yashthaker7/TYDB/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248229353,"owners_count":21068878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios","objective-c","sqlite","sqlite-database","sqlite3","sqlitemanger","swift","swift4","tydb","xcode"],"created_at":"2024-09-25T01:15:13.861Z","updated_at":"2026-03-18T01:32:06.023Z","avatar_url":"https://github.com/yashthaker7.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simplest SQLite manager for iOS. \n\n\nSetup Instructions\n---------\nManually:\n1. Add `Database` folder to your project.\n2. Add `libsqlite3.tbd` or `libsqlite3.0.tbd` to Project -\u003e General -\u003e Linked Frameworks and Libraries.\n3. Import `DBManager.h` to AppDelegate and call below method in didFinishLaunchingWithOptions.\n```objc \n[DBManager copyDatabaseIfNeeded]; \n```\nHow to use \n---------\n\nCreate table\n---------\n```objc\nNSMutableDictionary *data = [[NSMutableDictionary alloc] init];\n[data setObject:@\"Yash\" forKey:@\"Name\"];\n[data setObject:@\"yashthaker7@gmail.com\" forKey:@\"Email\"];\n\n[DBManager createTable:@\"Users\" withDictionary:data]; // pass dictionary and table name.\n```\nInsert data\n---------\n```objc\nNSMutableDictionary *data = [[NSMutableDictionary alloc] init];\n[data setObject:@\"Yash\" forKey:@\"Name\"];\n[data setObject:@\"yashthaker7@gmail.com\" forKey:@\"Email\"];\n\n[DBManager insertData:data tableName:@\"Users\"]; // pass dictionary and table name.\n```\nGet single data or find single data with ID\n---------\n```objc\nNSArray *user = [[NSArray alloc] initWithArray:[DBManager findDataWithId:2 tableName:@\"Users\"]]; // pass id and table name.\n```\nGet or find data with query\n---------\n```objc\nNSString *query = [NSString stringWithFormat:@\"select * from Users\"];\nNSArray *user = [[NSArray alloc] initWithArray:[DBManager findDataWithQuery:query]]; // pass query.\n```\nGet all data\n---------\n```objc\nNSArray *users = [[NSArray alloc] initWithArray:[DBManager getAllData:@\"Users\"]]; // pass table name.\n```\nDelete data with ID\n---------\n```objc\nBOOL delete = [DBManager deleteDataWithId:1 tableName:@\"Users\"]; // pass id and table name.\n```\nUpdate data with ID\n---------\n```objc\nNSMutableDictionary *updateData = [[NSMutableDictionary alloc] init];\n[updateData setObject:@\"update\" forKey:@\"Name\"];\n[updateData setObject:@\"update@gmail.com\" forKey:@\"Email\"];\n\n[DBManager updateData:updateData id:1 tableName:@\"Users\"]; // pass dictionary, id and table name.\n```\nGet database path\n---------\n```objc\nNSString *getPath = [DBManager getDBPath];\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashthaker7%2Ftydb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyashthaker7%2Ftydb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashthaker7%2Ftydb/lists"}