Menu
Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version
Publication date

Mar 9, 2022

Confidentiality
Public
Reactions
1
Share

NullableSerializableDBField

SerializableDBField (null=True) whose instance value is typed object | None.

The object type is inferred from the constructor, no annotation needed:

data = NullableSerializableDBField(MyObject)   # -> MyObject | None
Attributes
object_type: type[gws_core.core.model.db_field.SerializableObject] | None
Functions
__init__

Initialize self. See help(type(self)) for accurate signature.

object_type : type
adapt
value : Any
alias
alias : Any
asc
collation : Any
nulls : Any
between
lo : Any
hi : Any
bin_and
rhs : Any
bin_or
rhs : Any
bind
model : Any
name : Any
set_attribute : bool - True
bind_to
dest : Any
cast
as_type : Any
clone
coerce
_coerce : bool - True
collate
collation : Any
concat
rhs : Any
contains
rhs : Any
converter
db_value
value : SerializableObject
Return type : str
ddl
ctx : Any
ddl_datatype
ctx : Any
desc
collation : Any
nulls : Any
distinct
endswith
rhs : Any
get_modifiers
get_sort_key
ctx : Any
ilike
rhs : Any
in_
rhs : Any
iregexp
rhs : Any
is_alias
is_null
is_null : bool - True
like
rhs : Any
not_in
rhs : Any
python_value
value : str
Return type : SerializableObject
regexp
rhs : Any
startswith
rhs : Any
to_value
value : Any
unalias
unwrap
copy @staticmethod
method : Any
Shine Logo
Technical bricks to reuse or customize

Have you developed a brick?

Share it to accelerate projects for the entire community.