Skip to content

Commit

Permalink
Update user guide
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Jul 23, 2024
1 parent 32a0e35 commit 77051b6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions guide/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,25 @@ the example below:
$saveHandler = new DatabaseHandler();
$saveHandler->setDatabase($database); // static
Database Table
##############

A basic example of a table for sessions is below:

.. code-block:: sql
CREATE TABLE `Sessions` (
`id` varchar(128) NOT NULL,
`timestamp` timestamp NOT NULL,
`data` blob NOT NULL,
`ip` varchar(45) NOT NULL, -- optional
`ua` varchar(255) NOT NULL, -- optional
PRIMARY KEY (`id`),
KEY `timestamp` (`timestamp`),
KEY `ip` (`ip`), -- optional
KEY `ua` (`ua`) -- optional
);
Files Handler
^^^^^^^^^^^^^

Expand Down

0 comments on commit 77051b6

Please sign in to comment.