|
10 | 10 | class Database extends Config |
11 | 11 | { |
12 | 12 | /** |
13 | | - * The directory that holds the Migrations |
14 | | - * and Seeds directories. |
| 13 | + * The directory that holds the Migrations and Seeds directories. |
15 | 14 | */ |
16 | 15 | public string $filesPath = APPPATH . 'Database' . DIRECTORY_SEPARATOR; |
17 | 16 |
|
18 | 17 | /** |
19 | | - * Lets you choose which connection group to |
20 | | - * use if no other is specified. |
| 18 | + * Lets you choose which connection group to use if no other is specified. |
21 | 19 | */ |
22 | 20 | public string $defaultGroup = 'default'; |
23 | 21 |
|
@@ -52,9 +50,113 @@ class Database extends Config |
52 | 50 | ], |
53 | 51 | ]; |
54 | 52 |
|
| 53 | + // /** |
| 54 | + // * Sample database connection for SQLite3. |
| 55 | + // * |
| 56 | + // * @var array<string, mixed> |
| 57 | + // */ |
| 58 | + // public array $default = [ |
| 59 | + // 'database' => 'database.db', |
| 60 | + // 'DBDriver' => 'SQLite3', |
| 61 | + // 'DBPrefix' => '', |
| 62 | + // 'DBDebug' => true, |
| 63 | + // 'swapPre' => '', |
| 64 | + // 'failover' => [], |
| 65 | + // 'foreignKeys' => true, |
| 66 | + // 'busyTimeout' => 1000, |
| 67 | + // 'dateFormat' => [ |
| 68 | + // 'date' => 'Y-m-d', |
| 69 | + // 'datetime' => 'Y-m-d H:i:s', |
| 70 | + // 'time' => 'H:i:s', |
| 71 | + // ], |
| 72 | + // ]; |
| 73 | + |
| 74 | + // /** |
| 75 | + // * Sample database connection for Postgre. |
| 76 | + // * |
| 77 | + // * @var array<string, mixed> |
| 78 | + // */ |
| 79 | + // public array $default = [ |
| 80 | + // 'DSN' => '', |
| 81 | + // 'hostname' => 'localhost', |
| 82 | + // 'username' => 'root', |
| 83 | + // 'password' => 'root', |
| 84 | + // 'database' => 'ci4', |
| 85 | + // 'schema' => 'public', |
| 86 | + // 'DBDriver' => 'Postgre', |
| 87 | + // 'DBPrefix' => '', |
| 88 | + // 'pConnect' => false, |
| 89 | + // 'DBDebug' => true, |
| 90 | + // 'charset' => 'utf8', |
| 91 | + // 'swapPre' => '', |
| 92 | + // 'failover' => [], |
| 93 | + // 'port' => 5432, |
| 94 | + // 'dateFormat' => [ |
| 95 | + // 'date' => 'Y-m-d', |
| 96 | + // 'datetime' => 'Y-m-d H:i:s', |
| 97 | + // 'time' => 'H:i:s', |
| 98 | + // ], |
| 99 | + // ]; |
| 100 | + |
| 101 | + // /** |
| 102 | + // * Sample database connection for SQLSRV. |
| 103 | + // * |
| 104 | + // * @var array<string, mixed> |
| 105 | + // */ |
| 106 | + // public array $default = [ |
| 107 | + // 'DSN' => '', |
| 108 | + // 'hostname' => 'localhost', |
| 109 | + // 'username' => 'root', |
| 110 | + // 'password' => 'root', |
| 111 | + // 'database' => 'ci4', |
| 112 | + // 'schema' => 'dbo', |
| 113 | + // 'DBDriver' => 'SQLSRV', |
| 114 | + // 'DBPrefix' => '', |
| 115 | + // 'pConnect' => false, |
| 116 | + // 'DBDebug' => true, |
| 117 | + // 'charset' => 'utf8', |
| 118 | + // 'swapPre' => '', |
| 119 | + // 'encrypt' => false, |
| 120 | + // 'failover' => [], |
| 121 | + // 'port' => 1433, |
| 122 | + // 'dateFormat' => [ |
| 123 | + // 'date' => 'Y-m-d', |
| 124 | + // 'datetime' => 'Y-m-d H:i:s', |
| 125 | + // 'time' => 'H:i:s', |
| 126 | + // ], |
| 127 | + // ]; |
| 128 | + |
| 129 | + // /** |
| 130 | + // * Sample database connection for OCI8. |
| 131 | + // * |
| 132 | + // * You may need the following environment variables: |
| 133 | + // * NLS_LANG = 'AMERICAN_AMERICA.UTF8' |
| 134 | + // * NLS_DATE_FORMAT = 'YYYY-MM-DD HH24:MI:SS' |
| 135 | + // * NLS_TIMESTAMP_FORMAT = 'YYYY-MM-DD HH24:MI:SS' |
| 136 | + // * NLS_TIMESTAMP_TZ_FORMAT = 'YYYY-MM-DD HH24:MI:SS' |
| 137 | + // * |
| 138 | + // * @var array<string, mixed> |
| 139 | + // */ |
| 140 | + // public array $default = [ |
| 141 | + // 'DSN' => 'localhost:1521/XEPDB1', |
| 142 | + // 'username' => 'root', |
| 143 | + // 'password' => 'root', |
| 144 | + // 'DBDriver' => 'OCI8', |
| 145 | + // 'DBPrefix' => '', |
| 146 | + // 'pConnect' => false, |
| 147 | + // 'DBDebug' => true, |
| 148 | + // 'charset' => 'AL32UTF8', |
| 149 | + // 'swapPre' => '', |
| 150 | + // 'failover' => [], |
| 151 | + // 'dateFormat' => [ |
| 152 | + // 'date' => 'Y-m-d', |
| 153 | + // 'datetime' => 'Y-m-d H:i:s', |
| 154 | + // 'time' => 'H:i:s', |
| 155 | + // ], |
| 156 | + // ]; |
| 157 | + |
55 | 158 | /** |
56 | | - * This database connection is used when |
57 | | - * running PHPUnit database tests. |
| 159 | + * This database connection is used when running PHPUnit database tests. |
58 | 160 | * |
59 | 161 | * @var array<string, mixed> |
60 | 162 | */ |
|
0 commit comments