Contents
Add some field only for postgres
anyblok_postgres.column.
Jsonb
(*args, **kwargs)Bases: anyblok.column.Column
Postgres JSONB column
from anyblok.declarations import Declarations
from anyblok_postgres.column import Jsonb
@Declarations.register(Declarations.Model)
class Test:
x = Jsonb()
anyblok_postgres.column.
LargeObject
(*args, **kwargs)Bases: anyblok.column.Column
Postgres JSONB column
from anyblok.declarations import Declarations
from anyblok_postgres.column import LargeObject
@Declarations.register(Declarations.Model)
class Test:
x = LargeObject()
-----------------------------
test = Test.insert()
test.x = hugefile
test.x # get the huge file
sqlalchemy_type
alias of OID
wrap_getter_column
(fieldname)Return a default getter for the field
Parameters: | fieldname – name of the field |
---|