This repository was archived by the owner on Apr 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathColumnTypeEnum.php
executable file
·111 lines (102 loc) · 3.37 KB
/
ColumnTypeEnum.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
/**
* Copyright (C) GrizzIT, Inc. All rights reserved.
* See LICENSE for license details.
*/
namespace Ulrack\Dbal\Sql\Common;
use GrizzIt\Enum\Enum;
/**
* @method static ColumnTypeEnum TINYINT()
* @method static ColumnTypeEnum SMALLINT()
* @method static ColumnTypeEnum MEDIUMINT()
* @method static ColumnTypeEnum INT()
* @method static ColumnTypeEnum BIGINT()
* @method static ColumnTypeEnum DECIMAL()
* @method static ColumnTypeEnum FLOAT()
* @method static ColumnTypeEnum DOUBLE()
* @method static ColumnTypeEnum BIT()
* @method static ColumnTypeEnum BOOLEAN()
* @method static ColumnTypeEnum DATE()
* @method static ColumnTypeEnum DATETIME()
* @method static ColumnTypeEnum TIMESTAMP()
* @method static ColumnTypeEnum TIME()
* @method static ColumnTypeEnum YEAR()
* @method static ColumnTypeEnum CHAR()
* @method static ColumnTypeEnum VARCHAR()
* @method static ColumnTypeEnum TINYTEXT()
* @method static ColumnTypeEnum MEDIUMTEXT()
* @method static ColumnTypeEnum LONGTEXT()
* @method static ColumnTypeEnum BINARY()
* @method static ColumnTypeEnum VARBINARY()
* @method static ColumnTypeEnum TINYBLOB()
* @method static ColumnTypeEnum MEDIUMBLOB()
* @method static ColumnTypeEnum BLOB()
* @method static ColumnTypeEnum LONGBLOB()
* @method static ColumnTypeEnum ENUM()
* @method static ColumnTypeEnum SET()
* @method static ColumnTypeEnum GEOMETRY()
* @method static ColumnTypeEnum POINT()
* @method static ColumnTypeEnum LINESTRING()
* @method static ColumnTypeEnum POLYGON()
* @method static ColumnTypeEnum MULTIPOINT()
* @method static ColumnTypeEnum MULTILINESTRING()
* @method static ColumnTypeEnum MULTIPOLYGON()
* @method static ColumnTypeEnum GEOMETRYCOLLECTION()
* @method static ColumnTypeEnum JSON()
*/
class ColumnTypeEnum extends Enum
{
/**
* Numeric types
*/
public const TINYINT = 'TINYINT';
public const SMALLINT = 'SMALLINT';
public const MEDIUMINT = 'MEDIUMINT';
public const INT = 'INT';
public const BIGINT = 'BIGINT';
public const DECIMAL = 'DECIMAL';
public const FLOAT = 'FLOAT';
public const DOUBLE = 'DOUBLE';
public const BIT = 'BIT';
public const BOOLEAN = 'BOOLEAN';
/**
* Date types
*/
public const DATE = 'DATE';
public const DATETIME = 'DATETIME';
public const TIMESTAMP = 'TIMESTAMP';
public const TIME = 'TIME';
public const YEAR = 'YEAR';
/**
* Text types
*/
public const CHAR = 'CHAR';
public const VARCHAR = 'VARCHAR';
public const TINYTEXT = 'TINYTEXT';
public const TEXT = 'TEXT';
public const MEDIUMTEXT = 'MEDIUMTEXT';
public const LONGTEXT = 'LONGTEXT';
public const BINARY = 'BINARY';
public const VARBINARY = 'VARBINARY';
public const TINYBLOB = 'TINYBLOB';
public const MEDIUMBLOB = 'MEDIUMBLOB';
public const BLOB = 'BLOB';
public const LONGBLOB = 'LONGBLOB';
public const ENUM = 'ENUM';
public const SET = 'SET';
/**
* Spatial types
*/
public const GEOMETRY = 'GEOMETRY';
public const POINT = 'POINT';
public const LINESTRING = 'LINESTRING';
public const POLYGON = 'POLYGON';
public const MULTIPOINT = 'MULTIPOINT';
public const MULTILINESTRING = 'MULTILINESTRING';
public const MULTIPOLYGON = 'MULTIPOLYGON';
public const GEOMETRYCOLLECTION = 'GEOMETRYCOLLECTION';
/**
* JSON types
*/
public const JSON = 'JSON';
}