3

I'm looking for examples of a basic CRUD application in Dart utilizing a postgres database.

I found a stack question from user cc young that described a dart web server with dart clients and I was wondering how to implement such a solution.

"... running dart web server, with dart on clients as well. web data is saved in files and in a postgres database." (Should a Dart web server use UTF-16 encoding for everything?)

Cœur
  • 37,241
  • 25
  • 195
  • 267
beardww
  • 51
  • 1
  • 5

1 Answers1

1

There is a pub package available for working with PostgreSQL databases. The readme provides some usage examples.

Fox32
  • 13,126
  • 9
  • 50
  • 71
  • I believe they are all examples for server-side connections; I think I'm missing the client side integration via dart. – beardww Nov 23 '13 at 22:54
  • 2
    You could create a RESTful api interface that your browser client can use. The package route can help you with this task: http://pub.dartlang.org/packages/route – Fox32 Nov 24 '13 at 10:47
  • For the client site send JSON messages to the server. There's an example here https://www.dartlang.org/articles/json-web-service/ – Greg Lowe Nov 25 '13 at 23:45
  • dart 2 incompatible – mercury Jun 05 '20 at 22:25