LibPq class

a LibPq wrapper

Implemented types

Constructors

LibPq(String info, {DynamicLibrary? dynamicLibrary, String? dllPath, Encoding? encoding})

Properties

conn Pointer<pg_conn>
getter/setter pair
connInfo Pointer<Char>
getter/setter pair
encoding Encoding
default is Utf8Codec(allowMalformed: true)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
lastErrorMessage String
no setter
libpqVersion int
no setter
pq LibpqBindings
getter/setter pair
protocol int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version String
no setter

Methods

comitTransaction() → void
Comit transaction
dispose() → void
override
exec(String query, {Allocator allocator = ffi.malloc}) PqResult
Excecute a sql query Example:
execMapList(String query) List<Map<String, dynamic>>
Excecute a sql query return data as list of Map and dispose (Release Resources)
execParams(String query, List<String> params, {Allocator allocator = ffi.malloc}) PqResult
Excecute a sql query with params Example:
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pqftypename(int ftype) String
Returns the field type as a string
rollbackTransaction() → void
Rollback a transaction
startTransaction() → void
Begin a transaction
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited