]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
unicode
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 2 Mar 2006 00:44:18 +0000 (00:44 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 2 Mar 2006 00:44:18 +0000 (00:44 +0000)
doc/build/content/types.myt

index a8a9adc40d6454022c5a2614e68be2ba22842456..370222ff6ce8386f3f6a5e899cf082106b50f532 100644 (file)
 </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
+</&>