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
    
  
  
    
  | insert into my_table (id, desc, updated_at) | |
| values ( | |
| 1, | |
| 'text', | |
| clock_timestamp() | |
| ) | |
| on conflict (id) -- Must be unique | |
| do update set (desc, updated_at) = ('text', clock_timestamp()) | |
| where my_table.id = 1; | 
  
    
      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
    
  
  
    
  | import d3 from 'd3/d3' | |
| import Plottable from './plottable' | |
| const findDOMNode = (node, tag) => { | |
| tag = tag.toUpperCase() | |
| while (node.parentNode) { | |
| node = node.parentNode | |
| if (node.tagName.toUpperCase().trim() === tag) { | |
| return node | |
| } | 
  
    
      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
    
  
  
    
  | UPDATE tbl x | |
| SET tbl_id = 24 | |
| , name = 'New Gal' | |
| FROM (SELECT tbl_id, name FROM tbl WHERE tbl_id = 4 FOR UPDATE) y | |
| WHERE x.tbl_id = y.tbl_id | |
| RETURNING y.tbl_id AS old_id, y.name AS old_name, x.tbl_id, x.name; | 
  
    
      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
    
  
  
    
  | package models | |
| import org.joda.time.DateTime | |
| /** | |
| * Base model abstract class | |
| * @param id Model identifier | |
| * @param createdAt Model created date | |
| * @param updatedAt Model updated date | |
| */ |