Skip to content

Instantly share code, notes, and snippets.

View mchelen's full-sized avatar

Mike Chelen mchelen

View GitHub Profile
@mchelen
mchelen / .gitignore
Last active November 7, 2017 02:14
bunyan file log test
*.log
node_modules
{
hello: "world",
foo: "bar"
}
@mchelen
mchelen / .gitignore
Last active September 19, 2017 00:38
Node async parallel example
node_modules
$log->pushHandler(new StreamHandler(__DIR__.'/debug.log', Logger::DEBUG));
<?php
/*
PHP Warning: db2_bind_param(): Describe Param Failed
*/
$conn = db2_connect('db', 'user', 'pass');
$sql = "
SELECT *
FROM MYTABLE
$this->query
->select('*')
->from('Table')
->where('Foo = ?')
->setParameter(0, 'Bar')
->orderBy('RowID','ASC')
;
BEGIN TRANSACTION;
CREATE TABLE `Users` (
`id` INTEGER,
`name` TEXT
);
INSERT INTO `Users` VALUES (1,'foo');
INSERT INTO `Users` VALUES (2,'bar');
COMMIT;
> phpunit
PHPUnit 6.0.11 by Sebastian Bergmann and contributors.
Runtime: PHP 7.0.15-0ubuntu0.16.10.4
Configuration: /home/mchelen/doc/phpunit-dbunit-example/phpunit.xml
E. 2 / 2 (100%)
Time: 12 ms, Memory: 4.00MB
"minimum-stability": "dev",
"prefer-stable": false,
migration config yml
source:
plugin: url
data_fetcher_plugin: file
data_parser_plugin: json
running drush migrate-import