Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Machine Learning
avec Scikit-Learn
Voir le programme détaillé
Classe « CLOB »

Constructeur sqlalchemy.CLOB.__init__

Signature de la constructeur __init__

def __init__(self, length: 'Optional[int]' = None, collation: 'Optional[str]' = None) 

Description

help(CLOB.__init__)

Create a string-holding type.

:param length: optional, a length for the column for use in
  DDL and CAST expressions.  May be safely omitted if no ``CREATE
  TABLE`` will be issued.  Certain databases may require a
  ``length`` for use in DDL, and will raise an exception when
  the ``CREATE TABLE`` DDL is issued if a ``VARCHAR``
  with no length is included.  Whether the value is
  interpreted as bytes or characters is database specific.

:param collation: Optional, a column-level collation for
  use in DDL and CAST expressions.  Renders using the
  COLLATE keyword supported by SQLite, MySQL, and PostgreSQL.
  E.g.:

  .. sourcecode:: pycon+sql

    >>> from sqlalchemy import cast, select, String
    >>> print(select(cast("some string", String(collation="utf8"))))
    {printsql}SELECT CAST(:param_1 AS VARCHAR COLLATE utf8) AS anon_1

  .. note::

    In most cases, the :class:`.Unicode` or :class:`.UnicodeText`
    datatypes should be used for a :class:`_schema.Column` that expects
    to store non-ascii data. These datatypes will ensure that the
    correct types are used on the database.



Vous êtes un professionnel et vous avez besoin d'une formation ? Machine Learning
avec Scikit-Learn
Voir le programme détaillé