File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 * - Fetching results in different formats (array, object, etc.).
3030 * - Generating unique IDs and retrieving the last inserted ID.
3131 *
32- * **Example:**
33- * ```php
34- * <?php
35- * $db = new PicoDatabase($credentials);
36- * $db->connect();
37- * $result = $db->fetch("SELECT * FROM users WHERE id = ?", 123);
38- * ```
39- *
4032 * @author Kamshory
4133 * @package MagicObject\Database
4234 * @link https://github.com/Planetbiru/MagicObject
Original file line number Diff line number Diff line change 2626 */
2727class PicoDatabaseStructure
2828{
29- const ANNOTATION_TABLE = "Table " ;
29+ const ANNOTATION_TABLE = "Table " ;
3030 const ANNOTATION_COLUMN = "Column " ;
31- const ANNOTATION_ID = "Id " ;
32- const KEY_NAME = "name " ;
33- const KEY_TYPE = "type " ;
34- const KEY_NULL = "null " ;
35- const KEY_NOT_NULL = "notnull " ;
36- const KEY_NULLABLE = "nullable " ;
37- const KEY_PRIMARY = "primary " ;
31+ const ANNOTATION_ID = "Id " ;
32+ const KEY_NAME = "name " ;
33+ const KEY_TYPE = "type " ;
34+ const KEY_NULL = "null " ;
35+ const KEY_NOT_NULL = "notnull " ;
36+ const KEY_NULLABLE = "nullable " ;
37+ const KEY_PRIMARY = "primary " ;
3838
3939 /**
4040 * The associated MagicObject instance.
You can’t perform that action at this time.
0 commit comments