Derrick Gold

  • Home
  • Albums
    • Alberta
    • Arizona
    • Berlin
    • Blink-182
    • Cambodia
    • Default
    • Indiana Jones
    • Italy
    • Japan
    • New York
    • Nova Scotia
    • Peru
    • Quebec
    • Shanghai
    • South Korea
    • Vancouver
  • Projects
    • AlexaSkillNodeLambdaSkeleton
    • Arkanoid-SCDS2
    • Atari-Boxing-NDS
    • BAGASMI
    • BAGPlug-SCDS2
    • Botty-McBotFace
    • BrainFuck-2600
    • Brickfall-NDS
    • CLinkedListExample
    • CMPT491Proj1
    • Cpgsql
    • CPUMemStats
    • CStuff
    • DeerFactValidator
    • DiskUsageDisplay
    • Dividends-2-Year-Trend
    • DownFall
    • DSTwoPong
    • Etch-NDS
    • fdshooter
    • MacEwanTeenyPascal
    • MarioPaintComposer-NDS
    • OpenPlugClientPy
    • OpenPlugServer
    • petulant-octo-spice
    • Pi-Doodle-Board
    • PyBot
    • Remote-Image-Browser
    • Remote-Music-Player
    • RemoteIndicator
    • Simple-File-Transfer
    • Simple-Virtual-Machine-Assembler
    • SmartReflectServer
    • SnowWars
    • SpaceInvaders-SCDS2
    • StaticWebpage
    • SysInfo
    • Tiny-Maze-Solver
    • UAPaint-NDS
    • XKCDComic
    • YoutubePlaylist
  • Music

Cpgsql

A simple example using the Postgresql C API

This page was programmatically generated from GitHub

ReadMe.md

A simple example using the Postgresql C API

Creating a database

Assuming Postgresql is installed on the system, run (replacing the text in <> with your own values):

initdb <database name> -E utf8
postgres -D <database name>
createuser -s <your user>
createdb <database name>

Once the database is made, update the conenction details in cpgsql.c to match the values provided in the database setup above.

Building

Type make from the project root directory. libpq will need to be installed.

Project information

  • Project URL Github
© Copyright Derrick Gold. All Rights Reserved
Designed by BootstrapMade