Installation
Rust (Recommended)
Add QAIL to your Cargo.toml:
[dependencies]
qail-core = "1.3.5" # AST and builder
qail-pg = "1.3.5" # PostgreSQL driver
CLI
Install the QAIL command-line tool:
cargo install qail
TypeScript SDK
Use the source package in this repository — it is not published to npm:
sdk/typescript/package.json
cd sdk/typescript
npm install && npm run build
Swift SDK
Use the source package in this repository:
sdk/swift/Package.swift
Kotlin SDK
Use the Gradle module in this repository:
sdk/kotlin/build.gradle.kts
Dart SDK
Use the source package in this repository — it is not published to pub.dev.
Add it as a path or git dependency in your pubspec.yaml:
dependencies:
qail:
path: ../qail.rs/sdk/dart
# or:
# git:
# url: https://github.com/qail-io/qail.git
# path: sdk/dart
dart pub get
import 'package:qail/qail.dart';
final qail = QailClient(QailConfig(url: 'http://localhost:8080'));
Requires Dart SDK >=3.4.0 <4.0.0. Works on Flutter and server-side Dart.
Deferred Bindings
- Node.js native binding: deferred
- WASM packaging: deferred
Verify Installation
qail --version
# qail 1.3.5