com.augustnagro.magnum
Members list
Type members
Classlikes
The total number of rows updated, or SuccessNoInfo if unknown.
The total number of rows updated, or SuccessNoInfo if unknown.
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Self type
-
ClickhouseDbType.type
Represents an entity column. Can be interpolated in sql"" expressions
Represents an entity column. Can be interpolated in sql"" expressions
Attributes
- Supertypes
A grouping of schema names, which may be interpolated in sql"" expressions.
A grouping of schema names, which may be interpolated in sql"" expressions.
Value parameters
- columnNames
-
The column names.
- queryRepr
-
The query representation. For example, "myColA, myColB"
Attributes
- Supertypes
Typeclass for JDBC reading & writing.
Typeclass for JDBC reading & writing.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object AnyCodec.typeobject BooleanCodec.typeobject ByteArrayCodec.typeobject ByteCodec.typeobject ByteIArrayCodec.typeobject DoubleCodec.typeobject FloatCodec.typeobject IntCodec.typeobject JavaBigDecimalCodec.typeobject LongCodec.typeobject OffsetDateTimeCodec.typeobject RowIdCodec.typeobject ScalaBigDecimalCodec.typeobject ShortCodec.typeobject SqlBlobCodec.typeobject SqlClobCodec.typeobject SqlDateCodec.typeobject SqlNClobCodec.typeobject SqlRefCodec.typeobject SqlTimeCodec.typeobject SqlTimestampCodec.typeobject SqlXmlCodec.typeobject StringCodec.typeobject URLCodec.typeobject UUIDCodec.typeobject VarCharUUIDCodec.typeShow all
- Self type
-
DbCodec[E]
Simple wrapper around java.sql.Connection. See com.augustnagro.magnum.connect and transact
Simple wrapper around java.sql.Connection. See com.augustnagro.magnum.connect and transact
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class DbTx
Factory for Repo default methods
Factory for Repo default methods
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object ClickhouseDbType.typeobject H2DbType.typeobject MySqlDbType.typeobject OracleDbType.typeobject PostgresDbType.typeobject SqliteDbType.typeShow all
Not useful for typical user code; provided to help implement custom DbCodecs and associated typeclasses
Not useful for typical user code; provided to help implement custom DbCodecs and associated typeclasses
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
DerivingUtil.type
Sql fragment
Sql fragment
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
Repository supporting read-only queries. When entity E does not have an id, use Null for the Id type.
Repository supporting read-only queries. When entity E does not have an id, use Null for the Id type.
Type parameters
- E
-
database entity class
- ID
-
id type of E
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
Attributes
- Supertypes
- Self type
-
MySqlDbType.type
Attributes
- Supertypes
- Self type
-
OracleDbType.type
Attributes
- Supertypes
- Self type
-
PostgresDbType.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
A read & write data repository
A read & write data repository
Type parameters
- E
-
database entity class
- EC
-
'Entity Creator', which should have all fields of E minus those auto-generated by the database. Can be the same type as E.
- ID
-
id type of E
Attributes
- Supertypes
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RepoDefaults.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Metadata for a exceptional SQL statement.
Metadata for a exceptional SQL statement.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
A SQL string that is interpolated directly into a sql"" query (and not as a PreparedStatement parameter)
A SQL string that is interpolated directly into a sql"" query (and not as a PreparedStatement parameter)
For example,
val myQaSchema = SqlLiteral("db_qa")
sql"SELECT * FROM $myQaSchema.table_name"
Generates the SQL:
"SELECT * FROM db_qa.table_name"
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SqlLiteral.type
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
Mapping from scala terms to sql terms
Mapping from scala terms to sql terms
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SqlNameMapper.type
Metadata for a successfully executed SQL statement.
Metadata for a successfully executed SQL statement.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
- Self type
-
SqliteDbType.type
Attributes
- Supertypes
-
trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
Metadata about a Table, which can be interpolated in sql"" expressions
Metadata about a Table, which can be interpolated in sql"" expressions
For example,
@Table(PostgresDbType, SqlNameMapper.CamelToSnakeCase)
case class User(@Id id: Long, firstName: String)
derives DbCodec
val u = TableInfo[User, User, Long].alias("u")
sql"SELECT ${u.firstName} FROM $u".sqlString ==
"SELECT u.first_name FROM user u"
Attributes
- Companion
- object
- Supertypes