All Projects → y500 → Iosdebugdatabase

y500 / Iosdebugdatabase

Licence: other
make it easy to debug databases in iOS applications iOS debug database

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Iosdebugdatabase

Avsqldebugger
A Simple Core Data Debugger that will look inside your apps DB
Stars: ✭ 30 (-86.3%)
Mutual labels:  database, sqlite, sqlite-database
Squeal
A Swift wrapper for SQLite databases
Stars: ✭ 303 (+38.36%)
Mutual labels:  database, sqlite, sqlite-database
Pssqlite
PowerShell module to query SQLite databases
Stars: ✭ 184 (-15.98%)
Mutual labels:  database, sqlite, sqlite-database
Android Debug Database
A library for debugging android databases and shared preferences - Make Debugging Great Again
Stars: ✭ 7,946 (+3528.31%)
Mutual labels:  database, sqlite, debug
Linq2db
Linq to database provider.
Stars: ✭ 2,211 (+909.59%)
Mutual labels:  database, sqlite
Old Rustorm
An ORM for rust
Stars: ✭ 168 (-23.29%)
Mutual labels:  database, sqlite
Rxgrdb
Reactive extensions for SQLite
Stars: ✭ 176 (-19.63%)
Mutual labels:  database, sqlite
Nut
Advanced, Powerful and easy to use ORM for Qt
Stars: ✭ 181 (-17.35%)
Mutual labels:  database, sqlite
Sqlite Jdbc
SQLite JDBC Driver
Stars: ✭ 1,961 (+795.43%)
Mutual labels:  database, sqlite
Laravel Migrate Fresh
An artisan command to build up a database from scratch
Stars: ✭ 179 (-18.26%)
Mutual labels:  database, debug
Choochoo
Training Diary
Stars: ✭ 186 (-15.07%)
Mutual labels:  database, sqlite
Esp32 arduino sqlite3 lib
Sqlite3 Arduino library for ESP32
Stars: ✭ 167 (-23.74%)
Mutual labels:  database, sqlite
Cachew
Transparent and persistent cache/serialization powered by type hints
Stars: ✭ 155 (-29.22%)
Mutual labels:  sqlite, sqlite-database
Ocaml Caqti
Cooperative-threaded access to relational data
Stars: ✭ 175 (-20.09%)
Mutual labels:  database, sqlite
Sqlitestudio
A free, open source, multi-platform SQLite database manager.
Stars: ✭ 2,337 (+967.12%)
Mutual labels:  database, sqlite
Trilogy
TypeScript SQLite layer with support for both native C++ & pure JavaScript drivers.
Stars: ✭ 195 (-10.96%)
Mutual labels:  database, sqlite
Pydbgen
Random dataframe and database table generator
Stars: ✭ 191 (-12.79%)
Mutual labels:  database, sqlite
Better Sqlite3
The fastest and simplest library for SQLite3 in Node.js.
Stars: ✭ 2,778 (+1168.49%)
Mutual labels:  database, sqlite
Migrate
Database migrations. CLI and Golang library.
Stars: ✭ 2,315 (+957.08%)
Mutual labels:  database, sqlite
Roomasset
A helper library to help using Room with existing pre-populated database [DEPRECATED].
Stars: ✭ 138 (-36.99%)
Mutual labels:  database, sqlite

YYDebugDatabase

YYDebugDatabase is a powerful library for debugging databases in iOS applications. Which like Android Debug database

YYDebugDatabase allows you to view and edit databases directly in your browser in a very simple way.

What can YYDebugDatabase do?

  • [x] See all the databases.
  • [x] Run any sql query on the given database to update and delete your data.
  • [x] Directly edit the database values.
  • [x] Directly add a row in the database.
  • [x] Delete database rows.
  • [x] Search in your data.
  • [x] Sort data.
  • [x] Download database.

Release 2.0.0:

  • Replace CocoaAsyncSocket with GCDWebServer, which is higher level server that more convenient.
  • Satisfy with Firefox, Safari, Chrome.
  • Use bonjourname as the server address, for example: http://y500.local, http://macbook.local:9002...
  • print link address and bonjour name of the server in the console

Installation

Podfile

To integrate YYDebugDatabase into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'YYDebugDatabase'

If use Swift, remember to add use_frameworks!

use_frameworks!
pod 'YYDebugDatabase'

Carthage

  • Cartfile
github "y500/iOSDebugDatabase"
  • run carthage update

  • Add all three .frameworks to your target "Embedd Frameworks" Build Phase:

    • iOSDebugDatabase.framework
    • FMDB.framework
    • GCDWebServers.framework

Not build in Release

First, add configurations in Podfile.

pod 'YYDebugDatabase', :configurations => ['Debug']

Then, run the following command:

$ pod install

USage

import at AppDelegate.m:

#import DebugDatabaseManager.h

making one line code at application:didFinishLaunchingWithOptions:

[[DebugDatabaseManager shared] startServerOnPort:9002];

Not run in Release

#ifdef DEBUG
	[[DebugDatabaseManager shared] startServerOnPort:9002];
#end

If use Swift:

import at Appdelegate.swift:

import YYDebugDatabase

making one line code at application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?):

DebugDatabaseManager.shared().startServer(onPort: 9002);

Advanced

It only shows the databasesin in Documents directory and Library/Cache directory by default, if you want show databases in other directories, you can use:

- (void)startServerOnPort:(NSInteger)port directories:(NSArray*)directories

for example:

    NSString *resourceDirectory = [[NSBundle mainBundle] resourcePath];
    NSString *databaseDirectory = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/database"];
    NSString *documentDirectory = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"];
    NSString *cacheDirectory = [NSHomeDirectory() stringByAppendingPathComponent:@"Library/Cache"];
    [[DebugDatabaseManager shared] startServerOnPort:9002 directories:@[resourceDirectory, databaseDirectory, documentDirectory, cacheDirectory]];

If use Swift:

    let directory:String = (Bundle.main.resourcePath)!;
    let documentsPath:String = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0]
    let cachePath:String = NSSearchPathForDirectoriesInDomains(.cachesDirectory, .userDomainMask, true)[0]
    DebugDatabaseManager.shared().startServer(onPort: 9002, directories: [directory, documentsPath, cachePath]);

That’s all(you can look at the Demo for details), just start the application :

Now open the provided link in your browser, and you will see like this:

query:

edit:

delete:

Important:

  • Your iPhone and laptop should be connected to the same Network (Wifi or LAN).
  • the host of you link address is the iPhone's net address.
  • If you use Simulator you can use address: http://127.0.0.1:9002.
  • the port must be same as you write in Appdelegate.m

###other more:

you can find the address and bojourname address in the console like below:

[INFO] DebugDatabaseManager started on port 9002 and reachable at http://192.168.0.67:9002/
[INFO] DebugDatabaseManager now locally reachable at http://y500.local:9002/

License

   Copyright (C) 2016 y500

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
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].