postgresql library
Classes
- ClientMessage
- An error or warning generated by the client.
- Column
- Connection
- A connection to a PostgreSQL database.
- ConnectionState
- The current state of a connection.
- DefaultTypeConverter
- Isolation
- See http://www.postgresql.org/docs/9.3/static/transaction-iso.html
- Message
- The server can send errors and notices, or the network can cause errors while the connection is not being used to make a query. See ClientMessage and ServerMessage for more information.
- Row
- Row allows field values to be retrieved as if they were getters.
- ServerMessage
- Represents an error or a notice sent from the postgresql server.
- Settings
- Settings can be used to create a postgresql uri for use in the connect function.
- TransactionState
- Describes whether the a connection is participating in a transaction, and if the transaction has failed.
- TypeConverter
- By implementing this class and passing it to connect(), it is possible to provide a customised handling of the Dart type encoding and PostgreSQL type decoding.
Constants
Functions
-
connect(
String uri, {Duration? connectionTimeout, String? applicationName, String? timeZone, TypeConverter? typeConverter, String? debugName}) → Future< Connection> - Connect to a PostgreSQL database.
-
encodeString(
String? s) → String -
Encodes the given string (
s
) into the format:E'xxx'
-
substitute(
String source, Map? values, String encodeValue(dynamic value, String? type)) → String -
substituteByList(
String source, List? values, String encodeValue(dynamic value, String? type)) → String