Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to setup pop on its own without buffalo #512

Open
KrzysztofMadejski opened this issue Sep 26, 2019 · 0 comments
Open

Document how to setup pop on its own without buffalo #512

KrzysztofMadejski opened this issue Sep 26, 2019 · 0 comments
Labels
enhancement New feature or request project:soda/pop This concerns soda/pop

Comments

@KrzysztofMadejski
Copy link

KrzysztofMadejski commented Sep 26, 2019

As follows I guess:

	// Option 1: connecting to db specified in database.yml
	pop.LoadConfigFile()
	db, err := pop.Connect("development")

	// Option 2: connecting to db specifying all params  
	cd := pop.ConnectionDetails{
		Dialect:  "postgres",
		Host: "localhost"
	}
	db, err = pop.NewConnection(&cd)
        db.Open()
@stanislas-m stanislas-m added the enhancement New feature or request label Jan 30, 2020
@stanislas-m stanislas-m added the project:soda/pop This concerns soda/pop label Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request project:soda/pop This concerns soda/pop
Projects
None yet
Development

No branches or pull requests

2 participants