Overview
Comment: | Nicer API.
-[executeCommand:parameters:] is now a variadic function instead of |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
d2fe40f16065b5ccf5ba135af1ec95f0 |
User & Date: | js on 2012-10-05 20:17:45 |
Other Links: | manifest | tags |
Context
2012-10-05
| ||
21:19 | Add Xcode project. check-in: cf2fe18597 user: js tags: trunk | |
20:17 | Nicer API. check-in: d2fe40f160 user: js tags: trunk | |
2012-10-04
| ||
22:18 | Exclude fields that are NULL from the result. check-in: 6d068f6ae7 user: js tags: trunk | |
Changes
Modified PGConnection.h from [6e2d36c890] to [260fd28f22].
︙ | |||
16 17 18 19 20 21 22 | 16 17 18 19 20 21 22 23 24 25 | - + | - (void)setParameters: (OFDictionary*)parameters; - (OFDictionary*)parameters; - (void)connect; - (void)reset; - (PGResult*)executeCommand: (OFString*)command; - (PGResult*)executeCommand: (OFString*)command |
Modified PGConnection.m from [8d29eddb59] to [d345fef3f0].
︙ | |||
74 75 76 77 78 79 80 | 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 | - + + + + + + + + - + - - - + - + - + | return [PGResult PG_resultWithResult: result]; PQclear(result); return nil; } - (PGResult*)executeCommand: (OFString*)command |
︙ |
Modified test.m from [e494e1ab6f] to [f9e8525602].
︙ | |||
26 27 28 29 30 31 32 | 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | - + - + + + + | [connection executeCommand: @"CREATE TABLE test (" @" id integer," @" name varchar(255)," @" content text" @")"]; [connection executeCommand: @"INSERT INTO test (id, name, content) " @"VALUES($1, $2, $3)" |