F
Flint DartDocs
GitHub

Database

Flint supports MySQL and PostgreSQL. Configure your connection in .env, and Flint will auto‑connect on server start (unless you disable it).

CodeBlock bash
# .env
DB_CONNECTION=mysql     # or postgres
DB_HOST=localhost
DB_PORT=3306
DB_NAME=flint
DB_USER=root
DB_PASSWORD=secret
DB_SECURE=false

You can disable auto‑connect and call DB.connect() manually if you need dynamic tenants.

CodeBlock dart
// Disable auto connect
final app = Flint(autoConnectDb: false);

// Manual connect
await DB.connect(database: 'flint');
  • DB_CONNECTIONmysql or postgres.
  • DB_SECURE — set true for secure MySQL connections.
  • Default ports: MySQL 3306, Postgres 5432.
F
Flint DartBackend framework and Dart UI docs

Build routes, controllers, APIs, docs, and browser UI from one Dart-shaped stack.

Controllers
OpenAPI
Flint UI
Copyright 2024 Flint Dart. Maintained by Eulogia Technologies.
v 1.1.14
MIT License
Built with Dart