# Functions
AlterIndex returns a query builder for the `ALTER INDEX` statement.
AlterTable returns a query builder for the `ALTER TABLE` statement.
And combines all given predicates with AND between them.
As suffixed the given column with an alias (`a` AS `b`).
Asc adds the ASC suffix for the given column.
Avg wraps the ident with the AVG aggregation function.
Column returns a new ColumnBuilder with the given name.
No description provided by the author
No description provided by the author
Contains is a helper predicate that checks substring using the LIKE predicate.
ContainsFold is a helper predicate that checks substring using the LIKE predicate.
Count wraps the ident with the COUNT aggregation function.
CreateIndex creates a builder for the `CREATE INDEX` statement.
CreateTable returns a query builder for the `CREATE TABLE` statement.
Delete creates a builder for the `DELETE` statement.
Desc adds the DESC suffix for the given column.
Describe returns a query builder for the `DESCRIBE` statement.
Dialect creates a new DialectBuilder with the given dialect name.
Distinct prefixed the given columns with the `DISTINCT` keyword (DISTINCT `id`).
DropIndex creates a builder for the `DROP INDEX` statement.
EQ returns a "=" predicate.
EqualFold is a helper predicate that applies the "=" predicate with case-folding.
False appends the FALSE keyword to the predicate.
ForeignKey returns a builder for the foreign-key constraint clause in create/alter table statements.
GT returns a ">" predicate.
GTE returns a ">=" predicate.
HasPrefix is a helper predicate that checks prefix using the LIKE predicate.
HasSuffix is a helper predicate that checks suffix using the LIKE predicate.
In returns the `IN` predicate.
InInts returns the `IN` predicate for ints.
Insert creates a builder for the `INSERT INTO` statement.
InValues adds the `IN` predicate for slice of driver.Value.
IsNull returns the `IS NULL` predicate.
Like returns the `LIKE` predicate.
Lower wraps the given column with the LOWER function.
LT returns a "<" predicate.
LTE returns a "<=" predicate.
Max wraps the ident with the MAX aggregation function.
Min wraps the ident with the MIN aggregation function.
NEQ returns a "<>" predicate.
Not wraps the given predicate with the not predicate.
NotIn returns the `Not IN` predicate.
NotNull returns the `IS NOT NULL` predicate.
Open wraps the database/sql.Open method and returns a dialect.Driver that implements the an ent/dialect.Driver interface.
OpenDB wraps the given database/sql.DB method with a Driver.
Or combines all given predicates with OR between them.
P creates a new predicates.
Raw returns a raw sql Querier that is placed as-is in the query.
Reference create a reference builder for the reference_option clause.
ScanInt scans and returns an int from the rows columns.
ScanInt64 scans and returns an int64 from the rows columns.
ScanOne scans one row to the given value.
ScanSlice scans the given ColumnScanner (basically, sql.Row or sql.Rows) into the given slice.
ScanString scans and returns a string from the rows columns.
Select returns a new selector for the `SELECT` statement.
Sum wraps the ident with the SUM aggregation function.
Table returns a new table selector.
Update creates a builder for the `UPDATE` statement.
With returns a new builder for the `WITH` statement.
# Structs
Builder is the base query builder for the sql dsl.
ColumnBuilder is a builder for column definition in table creation.
DeleteBuilder is a builder for `DELETE` statement.
DescribeBuilder is a query builder for `DESCRIBE` statement.
DialectBuilder prefixes all root builders with the `Dialect` constructor.
Driver is a dialect.Driver implementation for SQL based databases.
DropIndexBuilder is a builder for `DROP INDEX` statement.
ForeignKeyBuilder is the builder for the foreign-key constraint clause.
Func represents an SQL function.
IndexAlter is a query builder for `ALTER INDEX` statement.
IndexBuilder is a builder for `CREATE INDEX` statement.
InsertBuilder is a builder for `INSERT INTO` statement.
Predicate is a where predicate.
ReferenceBuilder is a builder for the reference clause in constraints.
No description provided by the author
Selector is a builder for the `SELECT` statement.
SelectTable is a table selector.
TableAlter is a query builder for `ALTER TABLE` statement.
TableBuilder is a query builder for `CREATE TABLE` statement.
Tx wraps the sql.Tx for implementing the dialect.Tx interface.
UpdateBuilder is a builder for `UPDATE` statement.
WithBuilder is the builder for the `WITH` statement.
Wrapper wraps a given Querier with different format.
# Interfaces
ColumnScanner is the interface that wraps the four sql.Rows methods used for scanning.
ExecQuerier wraps the standard Exec and Query methods.
Querier wraps the basic Query method that is implemented by the different builders in this file.
TableView is a view that returns a table view.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Queries are list of queries join with space between them.
No description provided by the author
No description provided by the author