File: PostgresDB_stub.k

package info (click to toggle)
kaya 0.4.4-6
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 5,036 kB
  • sloc: cpp: 9,544; haskell: 7,249; sh: 3,060; yacc: 910; makefile: 814; perl: 90
file content (26 lines) | stat: -rw-r--r-- 851 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module PostgresDB;

import DB;
import Prelude;

"<argument>The String contains a description of the error</argument>
<summary>Connection error</summary>
<prose>This Exception is thrown if the connection failed.</prose>"
Exception CantConnect(String err);
"<argument>The String contains a description of the error</argument>
<summary>Query error</summary>
<prose>This Exception is thrown if a query failed.</prose>"
Exception ExecError(String err);
"<summary>Column out of range.</summary>
<prose>This Exception should never occur. It is thrown if an attempt is made to read a column that doesn't exist.</prose>"
Exception ColumnOutOfRange();

abstract data PGConnection = PGCon(Ptr cdata);

type PGDB = DBHandle<PGConnection>;

public PGDB connect(var String conn) {
    throw(Not_Implemented);
}

public PGDB connect_pg(String info) = connect(info);