annotate MySQLdb/constants/FLAG.py @ 54:6e31278d3433 MySQLdb

There's no good reason to delay imports when the module is (1) useless without it or (2) you do the same late import more than once.
author kylev
date Mon, 23 Feb 2009 23:52:44 +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