From 2d47f5a0b99b9df89f6e01027fa8159a39307d33 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 2 Mar 2006 00:44:18 +0000 Subject: [PATCH] unicode --- doc/build/content/types.myt | 43 +++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/doc/build/content/types.myt b/doc/build/content/types.myt index a8a9adc40d..370222ff6c 100644 --- a/doc/build/content/types.myt +++ b/doc/build/content/types.myt @@ -10,24 +10,29 @@

The standard set of generic types are:

<&|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)

More specific subclasses of these types are available, to allow finer grained control over types:

<&|formatting.myt:code&> @@ -81,4 +86,4 @@ class BOOLEAN(Boolean) return self - \ No newline at end of file + -- 2.47.2