src/schema/v0026.js
function get_pg_prop(name) {

				if(name[0] === '$') {
					return name.substr(1);
				}

				var parts = name.split('.');

				if(parts.length === 1) {
					return "content->>'" + name + "'";
				}

				if(parts.length === 2) {
					return "content->'" + parts.join("'->>'") + "'";
				}

				return "content->'" + parts.slice(0, parts.length-1).join("'->'") + "'->>'" + parts[parts.length-1] + "'";
			}
function get_pg_prop(name) {

				if(name[0] === '$') {
					return name.substr(1);
				}

				var parts = name.split('.');

				if(parts.length === 1) {
					return "content->>'" + name + "'";
				}

				if(parts.length === 2) {
					return "content->'" + parts.join("'->>'") + "'";
				}

				return "content->'" + parts.slice(0, parts.length-1).join("'->'") + "'->>'" + parts[parts.length-1] + "'";
			}
function get_pg_prop ( name ) { if ( name [ 0 ] === '$' ) { return name . substr ( 1 ) ; } var parts = name . split ( '.' ) ; if ( parts . length === 1 ) { return "content->>'" + name + "'" ; } if ( parts . length === 2 ) { return "content->'" + parts . join ( "'->>'" ) + "'" ; } return "content->'" + parts . slice ( 0 , parts . length - 1 ) . join ( "'->'" ) + "'->>'" + parts [ parts . length - 1 ] + "'" ; }
Get PostgreSQL style property expression
Get PostgreSQL style property expression