This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var path = require('path'); | |
var traceur = require('traceur'); | |
require('traceur-source-maps').install(traceur); | |
function find_parent_package(filename) { | |
var current = path.dirname(filename); | |
while (true ) { | |
var package_json = path.join(current, 'package.json'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare @TableName sysname = 'Customers' | |
declare @Result varchar(max) = 'public class ' + @TableName + ' | |
{' | |
select @Result = @Result + ' | |
public ' + ColumnType + NullableSign + ' ' + ColumnName + ' { get; set; } | |
' | |
from | |
( | |
select |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installation instructions for the pldebugger for PostgreSQL | |
August 15th, 2013 · 3 Comments · Linux, OS X, PostgreSQL | |
As some of you may know, my book “PostgreSQL Server Programming” from Packt was published a few weeks ago. I’m pretty proud of it, and it has gotten a few great reviews. | |
One of the things that bothered me when the book went to press was that the instructions for installing the visual debugger were a little…well…lacking. | |
Here is more of a blow-by-blow explanation of how I got it working for the book exercises. | |
1. pg_config --version | |
2. "9.3beta2" | |
3. Look here for source code matching your version of PostgreSQL: |