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

Use given schema #35

Closed
rkaw92 opened this issue Mar 20, 2017 · 3 comments
Closed

Use given schema #35

rkaw92 opened this issue Mar 20, 2017 · 3 comments

Comments

@rkaw92
Copy link

rkaw92 commented Mar 20, 2017

Apparently, this module only allows one to pass a custom table name, but not a schema name. As a result, it is impossible to use a schema other than the default search path indicates.

An example usage of schema specification would look like this:

  new knexStore({
    knex: myKnexInstance,
    tablename: 'sessions',
    schemaname: 'myapp'
  })

Any thoughts?

@gx0r
Copy link
Owner

gx0r commented Aug 2, 2017

This is a good idea! If you are so inclined, feel free to make a pull request!

@DJviolin
Copy link

I find this thread with the same issue. It would be really useful to define custom schemas. But apart from giving columns custom names, such feature not so useful.

But what if you could collect some extra information regarding the request, for example User-Agent string or IP address? With Passport.js maybe it is possible to store such extra fields easily at authentication?

@CarpeNecopinum
Copy link

CarpeNecopinum commented Jan 20, 2022

On some older version of this package, I had success using "schema.table" as tablename.
But some semi-recent update (I assume of knex, not this package) broke that work-around (it's now escaped as "schema.table" with double quotes around everything, which doesn't work with Postgres at least)...

@gx0r gx0r closed this as not planned Won't fix, can't repro, duplicate, stale Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants