Download the PHP package andig/dbcopy without Composer

On this page you can find all versions of the php package andig/dbcopy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package dbcopy

dbcopy

dbcopy is a database copy- and migration tool. It is used by the Volkszaehler project.

Setup

dbcopy is configured via a dbcopy.json config file. dbcopy will look for this file in the following places if not specified using the --config option:

The config file has the following structure:

The tables section is optional. If not configured, dbcopy will auto-discover all tables in the source schema.

Command line syntax

Create command

The create command will copy the database schema of the source database connection to the target database. If database drivers (e.g. MySQL and SQlite) differ, the schema definition will be translated for the target platform. Limits of the underlying Doctrine/DBAL libraries apply.

Clear command

The clear command clears all tables in the target schema by TRUNCATING them. With the --drop option the tables are DROPPed altogether.

Drop command

Opposed to clear, the drop command DROPs the entire target schema if the database platforms supports it. If e.g. SQlite is used, the SQlite database file is not deleted.

Backup command

backup is the core routine of dbcopy. backup executes the following steps:

  1. Validate source connection is working and source schema exists, same for target connection and schema.
  2. Obtain list of tables- either from config file or by auto-discovering table of the source schema.
  3. Drop foreign keys on the identified tables in the target schema. This is necessary to allow copying of data without violating referential integrity.
  4. Copy data table by table according to configured copy mode.
  5. Re-apply foreign keys on the target schema (Note: currently not implemented for performance reasons.

Influx command

The influx command can copy data from the Volkszaehler data table into an InfluxDB measurement. This can be helpful for using Grafana or Chronograf with Volkszaehler.

With this command, the table configuration is ignored and only the data table transferred, including additional entity attributes.

Limitations

dbcopy does not support triggers and stored procedures. No support is planned.


All versions of dbcopy with dependencies

PHP Build Version
Package Version
Requires doctrine/dbal Version ^2.5|^3.0
symfony/console Version ^4.0|^5.0
influxdb/influxdb-php Version ^1.14
symfony/yaml Version ^4.|^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package andig/dbcopy contains the following files

Loading the files please wait ....