angel_orm library

Classes

BelongsTo
BooleanSqlExpressionBuilder
Column
Applies additional attributes to a database column.
ColumnType
Maps to SQL data types. [...]
DateTimeSqlExpressionBuilder
EnumSqlExpressionBuilder<T>
HasMany
HasOne
Join
JoinBuilder
Builds a SQL JOIN query.
JoinOn
JsonSqlExpressionBuilder<T, K>
JsonSqlExpressionBuilderProperty
ListSqlExpressionBuilder
ManyToMany
MapQueryValues
A QueryValues implementation that simply writes to a Map.
MapSqlExpressionBuilder
NumericSqlExpressionBuilder<T extends num>
OrderBy
Orm
PrimaryKey
Query<T, Where extends QueryWhere>
A SQL SELECT query builder.
QueryBase<T>
A base class for objects that compile to SQL queries, typically within an ORM.
QueryExecutor
An abstract interface that performs queries. [...]
QueryValues
QueryWhere
Builds a SQL WHERE clause.
RawSql
Can passed to a MigrationColumn to default to a raw SQL expression.
Relationship
RelationshipType
SqlExpressionBuilder<T>
StringSqlExpressionBuilder
Union<T>
Represents the UNION of two subqueries.

Constants

belongsTo → const BelongsTo
const BelongsTo()
currentTimestamp → const RawSql
A raw SQL statement that specifies a date/time default to the current time.
const RawSql('CURRENT_TIMESTAMP')
hasMany → const HasMany
const HasMany()
hasOne → const HasOne
const HasOne()
orm → const Orm
Canonical instance of ORM. Implies all defaults.
const Orm()
primaryKey → const Column
const PrimaryKey()
SQL_RESERVED_WORDS → const List<String>
const ['SELECT', 'UPDATE', 'INSERT', 'DELETE', 'FROM', 'ASC', 'DESC', 'VALUES', 'RETURNING', 'ORDER', 'BY']

Properties

dateYmd DateFormat
final
dateYmdHms DateFormat
final

Functions

isAscii(int ch) → bool
sanitizeExpression(String unsafe) → String
The ORM prefers using substitution values, which allow for prepared queries, and prevent SQL injection attacks.
toSql(Object obj, { bool withQuotes: true }) → String
The ORM prefers using substitution values, which allow for prepared queries, and prevent SQL injection attacks.

Enums

IndexType
Maps to SQL index types.
JoinType
The various types of join.