You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.
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?
The text was updated successfully, but these errors were encountered:
@joemottershaw Currently you have to come up with your own ID, Filebase just stores the data. That is a good feature for the future though for auto-incrementing if we had that setting in place.
Don't know if I'm just missing something here, but in the readme, you mention:
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?
The text was updated successfully, but these errors were encountered: