Skip to content

Instantly share code, notes, and snippets.

@kimyongin
kimyongin / json_postgres.js
Last active September 19, 2021 10:48 — forked from lucdew/json_postgres.js
Example of json document storage in postgresql and querying (with knex.js)
var connectionString = 'postgres://localhost:5432/postgres';
var Promise=require('bluebird');
var knex = require('knex')({
client: 'pg',
connection: {
user: 'postgres',
database: 'postgres',
port: 5432,
4월의 어느 해맑은 아침,
하라주쿠의 뒤안길에서 나는 100%의 여자아이와 엇갈린다.
솔직히 말해 그다지 예쁜 여자아이는 아니다.
눈에 띄는 데가 있는 것도 아니다.
멋진 옷을 입고 있는 것도 아니다.
머리카락 뒤쪽에는 나쁜 잠버릇이 끈질기게 달라붙어 있고,
나이도 적지 않다.
벌써 서른 살에 가까울테니까.
/*******************************************
Y O U R T U R N
********************************************/
var articles = [
{
author: {
name: 'mike',
email: 'mike@gmail.com'
},
books : [