SQLBuilder class abstract

Base class for SQL builders

Implemented types
Implementers

Constructors

SQLBuilder(SQLDialect dialect, [String? q])
  • q: the elements quote (default: the dialect's SQLDialect.elementQuote, or " if it has none).
  • Properties

    allSQLBuilders → List<SQLBuilder>
    All the SQLs of this builder tree node.
    no setter
    dependentTables → List<String>?
    Returns a list of dependent tables, usually referenced tables.
    no setter
    dialect → SQLDialect
    The SQL dialect.
    final
    extraSQLBuilders → List<SQLBuilder>?
    Some extra SQL related to this SQL.
    no setter
    hashCode → int
    The hash code for this object.
    no setterinherited
    mainTable → String
    The main table of the SQL.
    no setter
    q → String
    The quote of the dialect.
    final
    referenceTables → List<String>?
    Returns a list of referenced tables.
    no setter
    referenceTablesLength → int
    Returns a number of referenced tables.
    no setter
    runtimeType → Type
    A representation of the runtime type of the object.
    no setterinherited

    Methods

    buildAllSQLs({bool multiline = true, bool ifNotExists = true}) → List<String>
    Build all the SQLs, including the extraSQLBuilders.
    buildSQL({bool multiline = true, bool ifNotExists = true}) → String
    Build the SQL.
    compareTo(SQLBuilder other) → int
    Compares this object to another object.
    inherited
    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    toString() → String
    A string representation of this object.
    inherited

    Operators

    operator ==(Object other) → bool
    The equality operator.
    inherited