selecta 0.0.4-beta selecta: ^0.0.4-beta copied to clipboard
A model that represents SQL Select queries, and tools to convert from SQL/JSON to the model and back
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add selecta
With Flutter:
$ flutter pub add selecta
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
selecta: ^0.0.4-beta
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:selecta/builders/join_builder.dart';
import 'package:selecta/builders/order_by_builder.dart';
import 'package:selecta/builders/select_statement_builder.dart';
import 'package:selecta/builders/where_clause_builder.dart';
import 'package:selecta/functions.dart';
import 'package:selecta/model/join.dart';
import 'package:selecta/model/model.dart';
import 'package:selecta/model/operand.dart';
import 'package:selecta/model/order_by.dart';
import 'package:selecta/model/select_column.dart';
import 'package:selecta/model/select_statement.dart';
import 'package:selecta/model/where_clause_element.dart';
import 'package:selecta/sql_parser.dart';