Skip to content

Instantly share code, notes, and snippets.

@lpj145
Created August 25, 2017 14:19
Show Gist options
  • Save lpj145/059a54c7be7e4722d3dc980f8d5464e4 to your computer and use it in GitHub Desktop.
Save lpj145/059a54c7be7e4722d3dc980f8d5464e4 to your computer and use it in GitHub Desktop.
<?php
$database = new FiremonPHP\Database\Database();
$newPosts = $database->set([
'users' => [
['nome' => 'Marcos Dantas', 'cidade' => 'Parelhas'] // Inserção de muitos registros
//...
],
'users/65165161' => [ // Aqui é uma atualização
'nome' => 'Marcos Dantas',
'cidade' => 'Parelhas'
],
'users/84949' => null // Deleção aqui
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment