diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-03-02 00:44:18 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-03-02 00:44:18 +0000 |
| commit | 2d47f5a0b99b9df89f6e01027fa8159a39307d33 (patch) | |
| tree | db10c6f12edca3dfbd6aeb0cc9d99520cf10d333 | |
| parent | cdfcf1ac6bd5d881c14fadafdf086dea85a47f69 (diff) | |
| download | sqlalchemy-2d47f5a0b99b9df89f6e01027fa8159a39307d33.tar.gz | |
unicode
| -rw-r--r-- | doc/build/content/types.myt | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/doc/build/content/types.myt b/doc/build/content/types.myt index a8a9adc40..370222ff6 100644 --- a/doc/build/content/types.myt +++ b/doc/build/content/types.myt @@ -10,24 +10,29 @@ </p> <p>The standard set of generic types are:</p> <&|formatting.myt:code&> -# sqlalchemy.types package: -class String(TypeEngine): - def __init__(self, length=None) - -class Integer(TypeEngine) - -class Numeric(TypeEngine): - def __init__(self, precision=10, length=2) - -class Float(TypeEngine): - def __init__(self, precision=10) - -class DateTime(TypeEngine) - -class Binary(TypeEngine): - def __init__(self, length=None) - -class Boolean(TypeEngine) + # sqlalchemy.types package: + class String(TypeEngine): + def __init__(self, length=None) + + class Integer(TypeEngine) + + class Numeric(TypeEngine): + def __init__(self, precision=10, length=2) + + class Float(TypeEngine): + def __init__(self, precision=10) + + class DateTime(TypeEngine) + + class Binary(TypeEngine): + def __init__(self, length=None) + + class Boolean(TypeEngine) + + # converts unicode strings to raw bytes + # as bind params, raw bytes to unicode as + # rowset values + class Unicode(String) </&> <p>More specific subclasses of these types are available, to allow finer grained control over types:</p> <&|formatting.myt:code&> @@ -81,4 +86,4 @@ class BOOLEAN(Boolean) return self </&> </&> -</&>
\ No newline at end of file +</&> |
