Open
Conversation
Owner
|
Then source code and include paths needs to be modified as well, because |
Author
|
Thank you for this information.
…On Sat, Jan 14, 2017 at 5:13 PM, Dmitry ***@***.***> wrote:
Then source code and include paths needs to be modified as well, because
libpq-fe.h is included from postgresql directory
https://github.com/loentar/ngrest-db/blob/master/drivers/
postgres/src/PostgresDb.cpp#L24
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABOg9OuqYqj3SA02buXa_Fp7tayZfthhks5rSNf6gaJpZM4LjngD>
.
|
Author
|
any idea about this code, It can not create the 2nd table Student.
http://codepad.org/fYjEJIIz
…On Sat, Jan 14, 2017 at 6:11 PM, axl rose ***@***.***> wrote:
Thank you for this information.
On Sat, Jan 14, 2017 at 5:13 PM, Dmitry ***@***.***> wrote:
> Then source code and include paths needs to be modified as well, because
> libpq-fe.h is included from postgresql directory
> https://github.com/loentar/ngrest-db/blob/master/drivers/pos
> tgres/src/PostgresDb.cpp#L24
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#5 (comment)>, or mute
> the thread
> <https://github.com/notifications/unsubscribe-auth/ABOg9OuqYqj3SA02buXa_Fp7tayZfthhks5rSNf6gaJpZM4LjngD>
> .
>
|
Owner
|
You forgot to add
before And if you have more questions feel free to ask at: https://groups.google.com/forum/#!forum/ngrest |
Author
|
thanks a lot, I really like this project and I hope that it will have a
larfe community
…On Sat, Jan 14, 2017 at 7:23 PM, Dmitry ***@***.***> wrote:
You forgot to add
// *table: students
before struct Students?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABOg9GnWP7UYsqUPHyDZqvzFPRwKvDhHks5rSPafgaJpZM4LjngD>
.
|
Author
|
sorry for this question, I would like to know, is it possible to use
postgresql with DbManager.h ?
http://codepad.org/0ng0TxzL
…On Sat, Jan 14, 2017 at 7:26 PM, axl rose ***@***.***> wrote:
thanks a lot, I really like this project and I hope that it will have a
larfe community
On Sat, Jan 14, 2017 at 7:23 PM, Dmitry ***@***.***> wrote:
> You forgot to add
>
> // *table: students
>
> before struct Students?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#5 (comment)>, or mute
> the thread
> <https://github.com/notifications/unsubscribe-auth/ABOg9GnWP7UYsqUPHyDZqvzFPRwKvDhHks5rSPafgaJpZM4LjngD>
> .
>
|
Owner
|
It should be possible. If you have any troubles with that, please say. |
Author
|
this is my video.h http://codepad.org/lN3wQ1GB
this is my video.cpp http://codepad.org/fT4lvzz1
and i have this error http://codepad.org/mQkpd7KB
…On Sat, Jan 14, 2017 at 9:46 PM, Dmitry ***@***.***> wrote:
It should be possible. If you have any troubles with that, please say.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABOg9OtaP-KNThH1PjMkm95h0LwlgrBHks5rSRgRgaJpZM4LjngD>
.
|
Owner
|
Well, you should try to pass db settings explicitly: |
Owner
|
Also you can simplify "add" function like that. anyway id is ignored upon insertion by default. |
Author
|
Thanks a lot for your explaination, I got it.
…On Sat, Jan 14, 2017 at 11:06 PM, Dmitry ***@***.***> wrote:
Also you can simplify "add" function like that.
int Vfd::add_video(const Videos& video)
{
return NotesDb::inst().getTable<Videos>()
.insert(video)
.lastInsertId();
}
anyway id is ignored upon insertion by default.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABOg9JmlXcpy2xaw913GnmcSJfFkD-q9ks5rSSqogaJpZM4LjngD>
.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
check also if libpq-fe.h on /usr/include/, in my case I have this header on /usr/include/ and not /usr/include/postgresql (Slackware).