10000 Check if database record is stored after get() · Issue #21 · tmarois/Filebase · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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.
Check if database record is stored after get() #21
Closed
@jrondorf

Description

@jrondorf

Hi,

I am searching for a method to check if the database record is a new one, or if it was already stored in the file system.

// in this example, you would search an exact user name
// It would technically be stored as user_name.json in the directories
$item = $database->get(kingslayer);

This is giving me a document with the id kingslayer, regardless if it was already existing in the file system or not. I need some kind of method to check if the document is a newly created one, or if it is read from the filesystem (so already existed before).

Maybe I am not finding the correct method here...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0