@@ -45,57 +45,58 @@ void psock_close(psock_t *sock) {
4545}
4646
4747/* psql stubs */
48- long long psql_cellint (void * res , int row , int col ) {
49- (void )res ;
50- (void )row ;
51- (void )col ;
52- return 0 ;
48+ int64_t psql_cellint (const char * sql , int64_t dflt ) {
49+ (void )sql ;
50+ return dflt ;
5351}
5452
55- void * psql_prepare (const char * sql ) {
53+ psync_sql_res * psql_prepare (const char * sql ) {
5654 (void )sql ;
5755 return NULL ;
5856}
5957
60- void psql_bind_uint (void * stmt , int idx , unsigned long val ) {
61- (void )stmt ;
62- (void )idx ;
58+ void psql_bind_uint (psync_sql_res * res , int n , uint64_t val ) {
59+ (void )res ;
60+ (void )n ;
6361 (void )val ;
6462}
6563
66- void psql_run_free (void * stmt ) {
67- (void )stmt ;
64+ int psql_run_free (psync_sql_res * res ) {
65+ (void )res ;
66+ return -1 ;
6867}
6968
70- void * psql_query (const char * sql ) {
69+ psync_sql_res * psql_query (const char * sql ) {
7170 (void )sql ;
7271 return NULL ;
7372}
7473
75- void * * psql_fetch (void * res ) {
74+ psync_variant_row psql_fetch (psync_sql_res * res ) {
7675 (void )res ;
7776 return NULL ;
7877}
7978
80- void psql_free (void * res ) {
79+ void psql_free (psync_sql_res * res ) {
8180 (void )res ;
8281}
8382
84- const char * psql_expect_str (void * res , int row , int col ) {
85- (void )res ;
83+ const char * psql_expect_str (const char * name , const char * sql , uint32_t row , const psync_variant * params ) {
84+ (void )name ;
85+ (void )sql ;
8686 (void )row ;
87- (void )col ;
87+ (void )params ;
8888 return "" ;
8989}
9090
91- long long psql_expect_num (void * res , int row , int col ) {
92- (void )res ;
91+ uint64_t psql_expect_num (const char * name , const char * sql , uint32_t row , const psync_variant * params ) {
92+ (void )name ;
93+ (void )sql ;
9394 (void )row ;
94- (void )col ;
95+ (void )params ;
9596 return 0 ;
9697}
9798
98- void psql_try_free (void * res ) {
99+ void psql_try_free (psync_sql_res * res ) {
99100 (void )res ;
100101}
101102
0 commit comments