PgSchema
Attributes
- Source
- PgSchema.scala
- Graph
-
- Supertypes
Members list
Type members
Inherited classlikes
Active Record pattern implementation. Enables the user to insert an object in its existent table with a convenient
Active Record pattern implementation. Enables the user to insert an object in its existent table with a convenient
save
method.
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
- Supertypes
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
Attributes
- Source
- PgSchema.scala
Attributes
- Source
- PgSchema.scala
Attributes
- Source
- PgSchema.scala
Inherited methods
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
Use this method to override the DatabaseAdapter's default column type for the given field (FieldMetaData), returning None means that no override will take place.
Use this method to override the DatabaseAdapter's default column type for the given field (FieldMetaData), returning None means that no override will take place.
There are two levels at which db column type can be overridden, in order of precedence :
on(professors)(p => declare( s.yearlySalary is(dbType("real")) ))
overrides (has precedence over) :
MySchema extends Schema { ... override def columnTypeFor(fieldMetaData: FieldMetaData, owner: Table[_]) = if(fieldMetaData.wrappedFieldType.isInstanceOf[Int) Some("number") else None }
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
Attributes
- Returns
-
the default database storage (column) length for String columns for this Schema, Can be overridden by the Column Annotation ex.: Column(length=256) default is 128
- Inherited from:
- Schema
- Source
- Schema.scala
Attributes
- Returns
-
a Tuple2 with (LengthOfDecimal, Scale) that will determine the storage length of the database type that map fields of type java.lang.BigDecimal Can be overridden by the Column Annotation, ex.: Column(length=22, scale=20) default is (20,16)
- Inherited from:
- Schema
- Source
- Schema.scala
This will drop all tables and related sequences in the schema... it's a dangerous operation, typically this is only useful for development database instances, the method is protected in order to make it a little less 'accessible'
This will drop all tables and related sequences in the schema... it's a dangerous operation, typically this is only useful for development database instances, the method is protected in order to make it a little less 'accessible'
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
Value parameters
- statementHandler
-
is a closure that receives every declaration in the schema.
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
Prints the schema to standard output, it is simply : schema.printDdl(println(_))
Prints the schema to standard output, it is simply : schema.printDdl(println(_))
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
Attributes
- Inherited from:
- TableDefinitionInSchema
- Source
- TableDefinitionInSchema.scala
Attributes
- Inherited from:
- TableDefinitionInSchema
- Source
- TableDefinitionInSchema.scala
Attributes
- Inherited from:
- TableDefinitionInSchema
- Source
- TableDefinitionInSchema.scala
Attributes
- Inherited from:
- TableDefinitionInSchema
- Source
- TableDefinitionInSchema.scala
Attributes
- Inherited from:
- TableDefinitionInSchema
- Source
- TableDefinitionInSchema.scala
Attributes
- Inherited from:
- TableDefinitionInSchema
- Source
- TableDefinitionInSchema.scala
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
Attributes
- Inherited from:
- Schema
- Source
- Schema.scala
Implicits
Inherited implicits
Creates a ActiveRecord instance for the given the object. That allows the user to save the given object using the Active Record pattern.
Creates a ActiveRecord instance for the given the object. That allows the user to save the given object using the Active Record pattern.
Attributes
- Returns
-
a instance of ActiveRecord associated to the given object.
- Inherited from:
- Schema
- Source
- Schema.scala