Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 836 Bytes

readme.md

File metadata and controls

32 lines (27 loc) · 836 Bytes

Database Management Script

This is example of a simple database management script that can be used to manage databases and tables.

todo

  • Add more queries (select, update, delete)
  • Security checks while inserting data

See example calls in app.php or use the available commands:

Available Commands

  • insert: Insert data into a table.
    php app.php insert {database} {table} {key1=value1,key2=value2,...}
  • checkTable: Check if a table exists.
    php app.php checkTable {database} {table}
  • createTable: Create a table.
    php app.php createTable {database} {table}
  • connect: Connect to a database.
      php app.php connect {database}
  • createDatabase: Create a database.
    php app.php createDatabase {database}