@@ -3,6 +3,29 @@ pgx
|
||||
|
||||
Experimental PostgreSQL client library for Go
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
TODO
|
||||
|
||||
Development
|
||||
===========
|
||||
|
||||
ERB Templating
|
||||
--------------
|
||||
|
||||
Sometimes Go code can be repetitive especially with dealing with functions that only differ in the type (e.g. ReadInt16, ReadInt32, ReadInt64). Some of this repetition can be eliminated by using a template preprocessor. pgx uses Ruby erb templates. Files that end in .go.erb are used to produce the corresponding .go files. These files can be automatically processed with guard -- a Ruby file and directory watcher.
|
||||
|
||||
Prerequisites:
|
||||
|
||||
* Ruby
|
||||
* guard
|
||||
* guard-tilt
|
||||
|
||||
To automatically process .go.erb files open a shell in the pgx directory and run:
|
||||
|
||||
jack@hk-47~/dev/pgx$ guard
|
||||
|
||||
Testing
|
||||
-------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user