Posted to tcl by oldlaptop at Fri Jun 17 18:18:36 GMT 2022view raw

  1. eltclsh > package require tdbc::postgres
  2. 1.1.3
  3. eltclsh > tdbc::postgres::connection create db
  4. ::db
  5. eltclsh > db allrows { create table foo(id integer generated by default as identity, p boolean) }
  6. eltclsh > db columns foo
  7. id {name id type integer precision 32 scale 0 nullable 0} p {name p nullable 1}
  8. eltclsh > dict exists [dict get [db columns foo] p] type ;# deviation: shouldn't the key exist?
  9. 0
  10. eltclsh >