PHP code example of elephentity / codegen-sqlite

1. Go to this page and download the library: Download elephentity/codegen-sqlite library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

elephentity / codegen-sqlite example snippets


$database = new Eleph\SQLite\Database('/var/lib/app/data.sqlite');
$install = chema.

$manifest = Lite\Sql\FieldMap($manifest->columns),
    $manifest->placements,
    new Eleph\SQLite\Sql\QueryCompiler(placements: $manifest->placements),
);
json
{
  "spec": "spec",
  "targets": {
    "php": {
      "builder": "vendor/bin/eleph-gen-php",
      "output": "generated",
      "namespace": "App\\Entity",
      "typeNamespace": "App\\Type"
    },
    "sqlite": {
      "builder": "vendor/bin/eleph-gen-sqlite",
      "output": "generated/sqlite"
    }
  }
}
sh
php tools/test-pipeline.php /path/to/elephentity-dev