Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
avram
v1.2.0
Top Level Namespace
Array
Avram
AddColumnAttributes
Associations
BelongsTo
HasMany
HasOne
Attribute
ErrorMessage
AvramError
BaseQueryTemplate
BetweenCriteria
CallableErrorMessage
Callbacks
ChronoUnits
Connection
ConnectionError
Credentials
Criteria
Database
ColumnInfo
DatabaseCleaner
DatabaseInfo
FiberId
TableInfo
DatabaseValidations
DefineAttribute
DeleteOperation
OperationStatus
DeleteOperationTemplate
Events
DeleteFailedEvent
DeleteSuccessEvent
FailedQueryEvent
QueryEvent
SaveFailedEvent
SaveSuccessEvent
ExtractCriteria
Factory
FailedMigration
FailedOperation
GenericAttribute
HabitatSettings
I18n
I18nBackend
ImpossibleValidation
IncludesCriteria
InheritColumnAttributes
Insert
Params
InvalidDatabaseNameError
InvalidOperationError
InvalidQueryError
Join
Full
Inner
Left
Right
SqlClause
LazyLoadError
MarkAsFailed
Migrator
AlterExtensionStatement
AlterTableStatement
BuildReferenceFragment
ChangeNullStatement
Columns
Base
BoolColumn
BytesColumn
Float32Column
Float64Column
FloatColumn
Int16Column
Int32Column
Int64Column
JSON
AnyColumn
PrimaryKeys
Base
Int16PrimaryKey
Int32PrimaryKey
Int64PrimaryKey
StringPrimaryKey
UUIDPrimaryKey
StringColumn
TimeColumn
UUIDColumn
CreateExtensionStatement
CreateForeignKeyStatement
CreateFunctionStatement
CreateIndexStatement
IndexTypes
CreateSequenceStatement
CreateTableStatement
CreateTriggerStatement
DropExtensionStatement
DropForeignKeyStatement
DropFunctionStatement
DropIndexStatement
DropSequenceStatement
DropTableStatement
DropTriggerStatement
IndexStatementHelpers
Columns
Migration
V1
MigrationId
MigrationGenerator
MissingOnDeleteWithBelongsToError
Runner
StatementHelpers
MissingRequiredAssociationError
Model
NeedyInitializer
NeedyInitializerAndDeleteMethods
NeedyInitializerAndSaveMethods
NestedSaveOperation
Nothing
Operation
OperationErrors
OrderBy
Direction
NullSorting
OrderByClause
OrderByRandom
Paramable
ParamKeyOverride
Params
PermittedAttribute
PGClientNotInstalledError
PGNotRunningError
Polymorphic
PrimaryKeyMethods
PrimaryKeyQueryable
PrimaryKeyType
Queryable
PGValue
QueryBuilder
ColumnName
RecordNotFoundError
Rollback
SaveOperation
OperationStatus
SaveOperationTemplate
SchemaEnforcer
EnsureExistingTable
EnsureMatchingColumns
EnsureUUIDPrimaryKeyHasDefault
Validation
SchemaMismatchError
Slugify
SoftDelete
Model
Query
SpecHelper
TableFor
TableName
Type
FailedCast
SuccessfulCast
UnsupportedQueryError
Uploadable
Lucky
Upsert
Validations
Where
Condition
Conjunction
Equal
Excludes
GreaterThan
GreaterThanOrEqualTo
Ilike
In
Includes
JsonbExcludes
JsonbHasAllKeys
JsonbHasAnyKeys
JsonbHasKey
JsonbIn
JsonbIncludes
JsonbNotIn
LessThan
LessThanOrEqualTo
Like
NotEqual
NotIlike
NotIn
NotJsonbHasAllKeys
NotJsonbHasAnyKeys
NotJsonbHasKey
NotLike
NotNull
Null
NullSqlClause
PrecedenceEnd
PrecedenceStart
Raw
SqlClause
TsMatch
TsNotMatch
ValueHoldingSqlClause
BaseTask
Bool
Lucky
ColumnType
Criteria
Char
DB
Connection
SavePointTransaction
TopLevelTransaction
Transaction
Db
Console
Create
Migrator
Drop
Migrate
One
Migrations
Status
Redo
Reset
Rollback
RollbackAll
RollbackTo
Schema
Dump
Restore
Setup
VerifyConnection
Enum
Lucky
ColumnType
Criteria
Fiber
Float64
Lucky
ColumnType
Criteria
Gen
Migration
HabitatSettings
Mixins
MigrationWithColumns
Model
Resource
Browser
InvalidOption
Int16
Lucky
ColumnType
Criteria
Int32
Lucky
ColumnType
Criteria
Int64
Lucky
ColumnType
Criteria
JSONConverter
Nil
Object
Slice
Lucky
ColumnType
Criteria
String
Lucky
ColumnType
Criteria
Time
Lucky
ColumnType
Criteria
UUID
Lucky
ColumnType
Criteria
Generated using Crystal 1.10.1
2024-04-22 02:38:48 UTC
class
Avram::
Database::
DatabaseCleaner
Avram::Database::DatabaseCleaner
Reference
Object
Defined in:
avram/database.cr
Constructors
.new
(database : Avram::Database)
Instance Method Summary
#delete
#truncate
(*, cascade : Bool =
true
, restart_identity : Bool =
true
)
Instance methods inherited from class
Object
blank_for_validates_required? : Bool
blank_for_validates_required?
Constructor Detail
def self.
new
(database :
Avram::Database
)
#
[
View source
]
Instance Method Detail
def
delete
#
[
View source
]
def
truncate
(*, cascade :
Bool
=
true
, restart_identity :
Bool
=
true
)
#
[
View source
]