Skip to content

parfeon/DBConnect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DBConnect

DBConnect is a thread-safe Objective-C SQLite wrapper for embedded systems. I was inspired by EGODatabase and FMDB when writing DBConnect
DBConnect was tested to work on iOS

DBConnect library structure

DBConnect consist from four basic classes:

  1. DBCDatabase
  2. DBCDatabaseResult
  3. DBCDatabaseRow
  4. DBCError

There are also other classes: DBCDatabaseInfo, DBCDatabaseIndexInfo, DBCDatabaseTableColumnInfo, DBCDatabaseIndexedColumnInfo
Also DBConnect has 2 categories to extend its abilities: Advanced, Aliases. DBConnect functionality was knowingly separated. Advanced will be interested for advanced users. Aliases contains methods, which are basically aliases for frequent queries. Functionality was separated to keep autocomplete away from bunch of methods, which you will possibly never use.

DBCDatabase

This is a basic class, which provides intuitive Objective-C API to work with SQLite3 library. It allows opening connection to sqlite database file in read-write and read-only modes. Of course, it also allows you to perform DDL, DML and TCL queries. Also this class allows you to create database from scratch, using SQL dump (like dump from MySQL).

DBCDatabaseResult

This class is used by DBConnect to provide results from query execution. This class implements fast enumeration for faster iteration through result's entries.

DBCDatabaseRow

DBConnect uses this class to store data retrieved when stepped using sqlite statement.

DBCError

DBCError is used by DBConnect to represent errors, which occurred during lifetime.

Documentation and how-to

Documentation and additional information about the usage you can find in Wiki.

License

Copyright (c) 2020 Sergey Mamontov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Objective-C SQLite wrapper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published