-
Notifications
You must be signed in to change notification settings - Fork 27
Traits
BerlinDB traits live in src/Database/Traits.
Most users do not use these directly. They are documented here so contributors can understand where behavior lives.
Shared object helpers.
to_array()apply_prefix()first_letters()set_vars()
Constructor and argument lifecycle.
Classes using this trait can customize:
sunrise()parse_args()special_args()validate_args()init()
Applies row casts after object properties are assigned.
Resolves the active database connection.
get_db_global()db()get_db()is_testing()
Contains success checking helpers.
Manages temporary state during nested operations.
Stores structured log entries in memory.
Useful methods:
get_logs()clear_logs()
Provides magic property helpers.
__get()__isset()
Shared behavior for SQL operator classes.
Shared behavior for query parsers, including query sanitization, operator lookup, SQL clause generation, date helpers, and caller delegation.
Shared sanitization helpers for table names, aliases, column names, index names, comments, and SQL identifiers.