-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathasync_postgres.meta.lua
131 lines (92 loc) · 2.26 KB
/
async_postgres.meta.lua
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
---@meta
--- Just a meta file for native async_postgres module
async_postgres = {}
async_postgres.VERSION = "1.0.0"
async_postgres.BRANCH = "main"
async_postgres.URL = "https://github.com/Pika-Software/gmsv_async_postgres"
async_postgres.PQ_VERSION = 160004
async_postgres.LUA_API_VERSION = 1
async_postgres.CONNECTION_OK = 0
async_postgres.CONNECTION_BAD = 1
async_postgres.PQTRANS_IDLE = 0
async_postgres.PQTRANS_ACTIVE = 1
async_postgres.PQTRANS_INTRANS = 2
async_postgres.PQTRANS_INERROR = 3
async_postgres.PQTRANS_UNKNOWN = 4
async_postgres.PQERRORS_TERSE = 0
async_postgres.PQERRORS_DEFAULT = 1
async_postgres.PQERRORS_VERBOSE = 2
async_postgres.PQERRORS_SQLSTATE = 3
async_postgres.PQSHOW_CONTEXT_NEVER = 0
async_postgres.PQSHOW_CONTEXT_ERRORS = 1
async_postgres.PQSHOW_CONTEXT_ALWAYS = 2
--- Creates connection to a PostgreSQL database with given connection string
--- see https://www.postgresql.org/docs/16/libpq-connect.html#LIBPQ-CONNSTRING
---@param url string
---@return PGconn
function async_postgres.connect(url)
end
---@class PGconn : userdata
local PGconn = {}
function PGconn:query(query, callback)
end
function PGconn:queryParams(query, params, callback)
end
function PGconn:prepare(name, query, callback)
end
function PGconn:queryPrepared(name, params, callback)
end
function PGconn:describePrepared(name, callback)
end
function PGconn:describePortal(name, callback)
end
function PGconn:reset(callback)
end
function PGconn:wait()
end
function PGconn:isBusy()
end
function PGconn:querying()
end
function PGconn:resetting()
end
function PGconn:db()
end
function PGconn:host()
end
function PGconn:hostaddr()
end
function PGconn:port()
end
function PGconn:status()
end
function PGconn:transactionStatus()
end
function PGconn:parameterStatus()
end
function PGconn:protocolVersion()
end
function PGconn:serverVersion()
end
function PGconn:errorMessage()
end
function PGconn:backendPID()
end
function PGconn:sslInUse()
end
function PGconn:sslAttribute(name)
end
function PGconn:clientEncoding()
end
function PGconn:setClientEncoding(encoding)
end
function PGconn:encryptPassword(user, password, algorithm)
end
function PGconn:escape(str)
end
function PGconn:escapeIdentifier(str)
end
function PGconn:escapeBytea(str)
end
function PGconn:unescapeBytea(str)
end