Skip to content
This repository was archived by the owner on Jun 2, 2024. It is now read-only.
This repository was archived by the owner on Jun 2, 2024. It is now read-only.

Assigning unique ID's to a record #68

@joemottershaw

Description

@joemottershaw

Don't know if I'm just missing something here, but in the readme, you mention:

// my user id
$userId = '92832711';

// get the user information by id
$item = $db->get($userId);

How would you actually go about creating that ID in a real world example? When you call$database->get('92832711'), is there some sort of auto incrementing ID stored somewhere in a separate record that you reference every time or is this up to us to generate ourselves?

I've written some wrappers and helper functions in my project for now that do this for me, but just wanted to know if there was a simpler way of having each record in a database directory unique like in a standard database.

Or are you using generating a UUID for each entry?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions