-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConstants.php
More file actions
31 lines (27 loc) · 919 Bytes
/
Constants.php
File metadata and controls
31 lines (27 loc) · 919 Bytes
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
<?php
declare(strict_types=1);
namespace Draeli\Mysql;
/**
* @package Draeli\Mysql
*/
class Constants
{
/*
* Supported types
*/
public const TYPE_INTEGER = 'integer';
public const TYPE_STRING = 'string';
public const TYPE_TEXT = 'text';
public const TYPE_BLOB = 'blob';
public const TYPE_FLOAT = 'float';
public const TYPE_DATE = 'date';
public const TYPE_DATETIME = 'datetime';
public const TYPE_TIME = 'time';
public const TYPE_BOOLEAN = 'boolean';
public const INDEX_UNIQUE = 'unique';
public const INDEX_NORMAL = 'index';
public const INDEX_PRIMARY = 'primary';
public const INDEX_FULLTEXT = 'fulltext';
// Based on this answer : https://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-and-utf8-unicode-ci#answer-766996
public const DEFAULT_COLLATION = 'utf8_unicode_ci';
}