PlaceholderIdentifier class

placeholder Identifier

Constructors

PlaceholderIdentifier(String value)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Postgresql default style Example: "SELECT * FROM book WHERE title = $1 AND code = $2" Postgres uses $# for placeholders https://www.postgresql.org/docs/9.1/sql-prepare.html
override

Operators

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

Constants

atSign → const PlaceholderIdentifier
In business, @ (Arroba ) is a symbol meaning "at" or "each." Example: "SELECT * FROM book WHERE title = @title AND code = @code"
onlyQuestionMark → const PlaceholderIdentifier
The colon is the symbol ":" Example: "SELECT * FROM book WHERE title = :title AND code = :code" The question mark ? (also known as interrogation point) Example: "SELECT * FROM book WHERE title = ? AND code = ?" Note: You cannot enclose the question mark in quotation marks. incorrect '?' => correct ??