question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support createSchema for MSSQL

See original GitHub issue

Environment

Knex version: all Database + version: MS SQL (all) OS: (all)

Select applicable template from below. MS SQL: @smorey2

Feature discussion / request

  1. Explain what is your use case

MS SQL Supports Schemata almost the same way as Postgres (they are after all cousins). createSchema should work on both MSSQL. The implementation is nearly identical to Postgres’s.

  1. Explain what kind of feature would support this

This is a matter of adding support in MSSQL for a feature that works in Postgres and then altering the check in compiler.js for ‘PGOnly’ to support both PG and MSSQL.

  1. Give some API proposal, how the feature should work

API is already implemented with a thrown error. This should just implement the missing functionality.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
kibertoadcommented, Oct 25, 2021

@Crisfole Weird. Then again, Oracle is not run in CI anymore (hi, Travis CI), so I wouldn’t be surprised if it’s broken. Feel free to ignore it and use db:run-without-oracle.

1reaction
Crisfolecommented, Oct 25, 2021

@kibertoad of course just wanted to log this first.

Still waiting on the docker pull…that’ll take a while.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CREATE SCHEMA (Transact-SQL) - Microsoft Learn
CREATE SCHEMA can create a schema, the tables and views it contains, and GRANT, REVOKE, or DENY permissions on any securable in a...
Read more >
SQL Server CREATE SCHEMA Statement By Examples
SQL Server CREATE SCHEMA statement overview · First, specify the name of the schema that you want to create in the CREATE SCHEMA...
Read more >
SQL CREATE/ALTER/DROP SCHEMA - w3resource
Use the CREATE SCHEMA statement to create multiple tables and views and perform multiple grants in your own schema in a single transaction....
Read more >
CREATE SCHEMA in SQL Server - GeeksforGeeks
A schema is a collection of database objects like tables, triggers, stored procedures, etc. A schema is connected with a user which is...
Read more >
Creating users and schemas for SQL Server databases - IBM
Important: In Microsoft SQL server, the default schema name associated with a user must be the same as the user name. For example,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found