개요
제목 ‘개요’고성능 SQLite 데이터베이스 접근을 위한 빠른 SQL 플러그인
핵심 기능
제목 ‘핵심 기능’connect- 데이터베이스 연결을 초기화하고 HTTP 서버를 시작합니다.disconnect- 데이터베이스 연결을 종료하고 HTTP 서버를 중지합니다.getServerInfo- 직접 통신을 위한 HTTP 서버 포트와 토큰을 가져옵니다.execute- 단순 쿼리에는 Capacitor 브릿지를 통해 SQL 쿼리를 실행합니다. 대용량 데이터 세트와 함께 성능을 개선하려면 HTTP 프로토콜을 직접 사용하는 SQLConnection 클래스를 사용하세요.
공개 API
제목 ‘공개 API’| Method | 설명 |
|---|---|
connect | 데이터베이스 연결을 초기화하고 HTTP 서버를 시작합니다. |
disconnect | 데이터베이스 연결을 닫고 HTTP 서버를 중지합니다. |
getServerInfo | 직접 통신을 위해 HTTP 서버 포트와 토큰을 가져옵니다. |
execute | Capacitor 브릿지를 통해 SQL 쿼리를 실행합니다. (단순 쿼리용). 대용량 데이터셋을 처리하기 위해 더 나은 성능을 위해 HTTP 프로토콜을 직접 사용하는 SQLConnection 클래스를 사용하세요. |
beginTransaction | 데이터베이스 트랜잭션을 시작합니다. |
commitTransaction | 현재 트랜잭션을 커밋합니다. |
rollbackTransaction | 현재 트랜잭션을 롤백합니다. |
getPluginVersion | Capacitor 플러그인 버전을 가져옵니다. |
configureWeb | sql.js WASM 모듈의 웹 관련 옵션을 구성합니다. |
This reference is synced from src/definitions.ts in capacitor-fast-sql.
Keep going from @capgo/capacitor-fast-sql
Section titled “Keep going from @capgo/capacitor-fast-sql”If you are using @capgo/capacitor-fast-sql to plan storage and file handling, connect it with Using @capgo/capacitor-fast-sql for the native capability in Using @capgo/capacitor-fast-sql, @capgo/capacitor-data-storage-sqlite implementation detail in @capgo/capacitor-data-storage-sqlite 에서 Using @capgo/capacitor-data-storage-sqlite native capability in Using @capgo/capacitor-data-storage-sqlite 에서 @capgo/capacitor-file implementation detail in @capgo/capacitor-file 에서 Using @capgo/capacitor-file native capability in Using @capgo/capacitor-file 에서