Skip to content

chris-rock/pgbytea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pgbytea - Test file blob store in Go

This small excercise tests out the blob storage of postgres in combination with golang. It provides a small binary that is doing the work.

  • init: ensures the database has the right table
  • store: stores a file in postgres
  • load: loads a file from postgres

Usage

export PG_CONN='user=chartmann dbname=chartmann sslmode=disable'
pgbytea init
pgbytea add hello hello.md
pgbytea read hello > test.md
pgbytea delete hello

References

About

Test fileblobs with go and postgres

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages