diff --git a/LICENSE b/LICENSE index 7452e82..471c157 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2025 Designraketen +Copyright (c) 2025 Designraketen and Loosen-IT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/build.php b/build.php index 6e17047..c7ded46 100644 --- a/build.php +++ b/build.php @@ -21,22 +21,26 @@ function genericDeepCopy(mixed $data): mixed { } // Require all enums -require './enums/Propagation.php'; -require './enums/Operator.php'; -require './enums/Order.php'; -require './enums/Charset.php'; -require './enums/Collation.php'; -require './enums/Type.php'; -require './enums/Engine.php'; -require './enums/Join.php'; +require 'enums/Propagation.php'; +require 'enums/Aggregation.php'; +require 'enums/Operator.php'; +require 'enums/Order.php'; +require 'enums/Charset.php'; +require 'enums/Collation.php'; +require 'enums/Type.php'; +require 'enums/Engine.php'; +require 'enums/Join.php'; // Require all classes -require './Database.php'; -require './Conditionable.php'; -require './Deletion.php'; -require './Insertion.php'; -require './Migration.php'; -require './Query.php'; -require './Schema.php'; -require './Table.php'; -require './Update.php'; +require 'Database.php'; +require 'Conditionable.php'; +require 'Deletion.php'; +require 'Insertion.php'; +require 'Migration.php'; +require 'Query.php'; +require 'Schema.php'; +require 'Table.php'; +require 'Update.php'; + +// Include testing framework +require 'tests/TestManager.php'; diff --git a/index.php b/index.php deleted file mode 100644 index ad71f1a..0000000 --- a/index.php +++ /dev/null @@ -1,53 +0,0 @@ -primary('col-primary', Type::INT, autoInc: true) - ->column('col-one', Type::BOOL) - ->column('col-two', Type::STRING) - ->create(); - - $batches = [ - [ - ['col-one', true], - ['col-two', 'EXPLODING!!!'] - ], - [ - ['col-one', false], - ['col-two', 'EXPLODING!!!'] - ], - ]; - - $batchInsert = Database::makeInsertion($table); - foreach($batches as $batch) { - $batchInsert->batchData($batch)->stack(); - } - $batchInsert->insert(); - - Database::makeUpdate($table) - ->where('col-primary', '=', 1) - ->set('col-one', false) - ->update(); - - $results = Database::makeQuery($table) - ->select('col-primary', 'col-one') - ->where('col-one', '=', true) - ->orderBy('col-one', Order::DESC) - ->query(); -} -catch ( Exception $e ) { - echo $e->getMessage(); -}