mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
README.md
This commit is contained in:
1 parent
ff69d3fbc3
commit
c2e624c78d
1 file changed
+20
-41
@@ -28,11 +28,6 @@ Compared to [SQLite.swift](http://github.com/stephencelis/SQLite.swift) or [FMDB
|
||||
|
||||
It comes with [up-to-date documentation](#documentation), [general articles](https://medium.com/@gwendal.roue), [sample code](#sample-code), and a lot of interesting resolved issues that may answer your eventual [questions](https://github.com/groue/GRDB.swift/issues?utf8=✓&q=is%3Aissue%20label%3Aquestion) and foster [best practices](https://github.com/groue/GRDB.swift/issues?q=is%3Aissue+label%3A%22best+practices%22).
|
||||
|
||||
For more information, check out:
|
||||
|
||||
- [Why Adopt GRDB?](Documentation/WhyAdoptGRDB.md) The reasons why GRDB could become your favorite database library.
|
||||
- [How to build an iOS application with SQLite and GRDB.swift](https://medium.com/@gwendal.roue/how-to-build-an-ios-application-with-sqlite-and-grdb-swift-d023a06c29b3) The architecture of a GRDB-powered application.
|
||||
|
||||
|
||||
---
|
||||
|
||||
@@ -249,25 +244,25 @@ Documentation
|
||||
|
||||
**GRDB runs on top of SQLite**: you should get familiar with the [SQLite FAQ](http://www.sqlite.org/faq.html). For general and detailed information, jump to the [SQLite Documentation](http://www.sqlite.org/docs.html).
|
||||
|
||||
**Reference**
|
||||
#### Reference
|
||||
|
||||
- [GRDB Reference](http://groue.github.io/GRDB.swift/docs/3.0-beta.1/index.html) (generated by [Jazzy](https://github.com/realm/jazzy))
|
||||
|
||||
**Getting Started**
|
||||
#### Getting Started
|
||||
|
||||
- [Installation](#installation)
|
||||
- [Database Connections](#database-connections): Connect to SQLite databases
|
||||
|
||||
**SQLite and SQL**
|
||||
#### SQLite and SQL
|
||||
|
||||
- [SQLite API](#sqlite-api): The low-level SQLite API • [executing updates](#executing-updates) • [fetch queries](#fetch-queries)
|
||||
|
||||
**Records and the Query Interface**
|
||||
#### Records and the Query Interface
|
||||
|
||||
- [Records](#records): Fetching and persistence methods for your custom structs and class hierarchies.
|
||||
- [Query Interface](#the-query-interface): A swift way to generate SQL • [table creation](#database-schema) • [requests](#requests)
|
||||
|
||||
**Application Tools**
|
||||
#### Application Tools
|
||||
|
||||
- [Migrations](#migrations): Transform your database as your application evolves.
|
||||
- [Full-Text Search](#full-text-search): Perform efficient and customizable full-text searches.
|
||||
@@ -277,7 +272,7 @@ Documentation
|
||||
- [Encryption](#encryption): Encrypt your database with SQLCipher.
|
||||
- [Backup](#backup): Dump the content of a database to another.
|
||||
|
||||
**Good to Know**
|
||||
#### Good to Know
|
||||
|
||||
- [Avoiding SQL Injection](#avoiding-sql-injection)
|
||||
- [Error Handling](#error-handling)
|
||||
@@ -287,9 +282,21 @@ Documentation
|
||||
- [Concurrency](#concurrency)
|
||||
- [Performance](#performance)
|
||||
|
||||
[FAQ](#faq)
|
||||
#### General Guides & Good Practices
|
||||
|
||||
[Sample Code](#sample-code)
|
||||
- [Why Adopt GRDB?](Documentation/WhyAdoptGRDB.md)
|
||||
- [Good Practices for Designing Record Types](Documentation/GoodPracticesForDesigningRecordTypes.md)
|
||||
- [Migrating From GRDB 2 to GRDB 3](Documentation/GRDB2MigrationGuide.md)
|
||||
- [How to build an iOS application with SQLite and GRDB.swift](https://medium.com/@gwendal.roue/how-to-build-an-ios-application-with-sqlite-and-grdb-swift-d023a06c29b3)
|
||||
- [Four different ways to handle SQLite concurrency](https://medium.com/@gwendal.roue/four-different-ways-to-handle-sqlite-concurrency-db3bcc74d00e)
|
||||
- [Unexpected SQLite with Swift](https://hackernoon.com/unexpected-sqlite-with-swift-ddc6343bcbfc)
|
||||
- [Issues tagged "question"](https://github.com/groue/GRDB.swift/issues?utf8=✓&q=is%3Aissue%20label%3Aquestion)
|
||||
- [Issues tagged "best practices"](https://github.com/groue/GRDB.swift/issues?q=is%3Aissue+label%3A%22best+practices%22)
|
||||
|
||||
|
||||
#### [FAQ](#faq)
|
||||
|
||||
#### [Sample Code](#sample-code)
|
||||
|
||||
|
||||
Installation
|
||||
@@ -4251,20 +4258,6 @@ See [fetching methods](#fetching-methods) for information about the `fetchCursor
|
||||
The RowDecoder type associated with the FetchRequest does not have to be Row, DatabaseValueConvertible, or FetchableRecord. See the [Customized Decoding of Database Rows](#customized-decoding-of-database-rows) chapter for more information.
|
||||
|
||||
|
||||
Application Tools
|
||||
=================
|
||||
|
||||
On top of the APIs described above, GRDB provides a toolkit for applications. While none of those are mandatory, all of them help dealing with the database:
|
||||
|
||||
- [Migrations](#migrations): Transform your database as your application evolves.
|
||||
- [Full-Text Search](#full-text-search): Perform efficient and customizable full-text searches.
|
||||
- [Joined Queries Support](#joined-queries-support): Consume complex joined queries.
|
||||
- [Database Changes Observation](#database-changes-observation): Perform post-commit and post-rollback actions.
|
||||
- [FetchedRecordsController](#fetchedrecordscontroller): Automated tracking of changes in a query results, plus UITableView animations.
|
||||
- [Encryption](#encryption): Encrypt your database with SQLCipher.
|
||||
- [Backup](#backup): Dump the content of a database to another.
|
||||
|
||||
|
||||
## Migrations
|
||||
|
||||
**Migrations** are a convenient way to alter your database schema over time in a consistent and easy way.
|
||||
@@ -6170,20 +6163,6 @@ The `backup` method blocks the current thread until the destination database con
|
||||
When the source is a [database pool](#database-pools), concurrent writes can happen during the backup. Those writes may, or may not, be reflected in the backup, but they won't trigger any error.
|
||||
|
||||
|
||||
Good To Know
|
||||
============
|
||||
|
||||
This chapter covers general topics that you should be aware of.
|
||||
|
||||
- [Avoiding SQL Injection](#avoiding-sql-injection)
|
||||
- [Error Handling](#error-handling)
|
||||
- [Unicode](#unicode)
|
||||
- [Memory Management](#memory-management)
|
||||
- [Data Protection](#data-protection)
|
||||
- [Concurrency](#concurrency)
|
||||
- [Performance](#performance)
|
||||
|
||||
|
||||
## Avoiding SQL Injection
|
||||
|
||||
SQL injection is a technique that lets an attacker nuke your database.
|
||||
|
||||
Reference in new issue
Block a user