package AdaBase is
   subtype BLOB_Maximum is Positive range 2 ** 12 .. 2 ** 30;
end AdaBase;

BLOB_Maximum function
AdaBase.Driver.Base.[DB].trait_max_blob_size ()

This is a connection attribute. It returns the driver setting limiting the maximum size of Binary Large OBjects (BLOB). If the contents of a binary data field exceeds this limit, the data will be truncated. The default value for this setting is 4096 (4 kb) so this attribute must be updated if the data can possibly be larger this this. Currently the maximum BLOB that AdaBase can handle is one gigabyte.


Procedure
AdaBase.Driver.Base.[DB].set_trait_max_blob_size (trait : BLOB_Maximum)

This procedure is used to set the maximum BLOB size. It can be set anytime.


See client traits for a usage example.


[DB] is "MySQL.MySQL_Driver", "PostgreSQL.PostgreSQL_Driver", or "SQLite.SQLite_Driver"

See Also