annotate MySQLdb/constants/FLAG.py @ 40:2d1a3d9e15b2 MySQLdb

Update some of the constants and declarations to post python-2.0 convenience functions, increase related test coverage.
author kylev
date Sun, 15 Feb 2009 07:26:43 +0000
parents 7773efbe9b30
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14
7773efbe9b30 Formatting and PyLint fixes. Final score: 8.21/10
adustman
parents: 0
diff changeset
1 """
7773efbe9b30 Formatting and PyLint fixes. Final score: 8.21/10
adustman
parents: 0
diff changeset
2 MySQL FLAG Constants
7773efbe9b30 Formatting and PyLint fixes. Final score: 8.21/10
adustman
parents: 0
diff changeset
3 --------------------
0
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
4
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
5 These flags are used along with the FIELD_TYPE to indicate various
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
6 properties of columns in a result set.
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
7
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
8 """
14
7773efbe9b30 Formatting and PyLint fixes. Final score: 8.21/10
adustman
parents: 0
diff changeset
9 __revision__ = "$Revision$"[11:-2]
7773efbe9b30 Formatting and PyLint fixes. Final score: 8.21/10
adustman
parents: 0
diff changeset
10 __author__ = "$Author$"[9:-2]
0
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
11
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
12 NOT_NULL = 1
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
13 PRI_KEY = 2
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
14 UNIQUE_KEY = 4
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
15 MULTIPLE_KEY = 8
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
16 BLOB = 16
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
17 UNSIGNED = 32
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
18 ZEROFILL = 64
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
19 BINARY = 128
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
20 ENUM = 256
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
21 AUTO_INCREMENT = 512
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
22 TIMESTAMP = 1024
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
23 SET = 2048
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
24 NUM = 32768
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
25 PART_KEY = 16384
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
26 GROUP = 32768
e48810735f11 Copying 1.2.1 to be the new trunk
adustman
parents:
diff changeset
27 UNIQUE = 65536