SQL

SQL stands for structured query language. It uses commands such as "select", "insert", "update", "delete". Some common relational database management systems that use SQL are: Oracle, MySQL, Microsoft SQL Server, PostgreSQL, etc.
Here are 20,449 public repositories matching this topic...
Working on a project I ran into the documentation for customizing the Foreign Key.
The docs read:
// https://sequelize.org/master/manual/assocs.html
// For example, to use UUID as the foreign key data type instead of the default (INTEGER), you can simply do:
const { DataTypes } = require("Sequelize");
Foo.hasOne(Bar, {
foreignKey: {
// name: 'myFooId'
type: D
Sometimes it is needed to store compressed data in the DB. Unfortunately not all the DBs have built-in compression and FUSE compressed FSes are not available for every OS. So it may make sense to store compressed binary blobs in the DB.
Unfortunately when one sees them in DBeaver he sees them compressed, but often they are needed uncompressed. So it'd be nice to have a feature to decompress the
Although RULE
is not listed as an allowed privilege on https://www.postgresql.org/docs/current/functions-info.html it turns out that PG supports a query like this
select has_table_privilege('table'::regclass::oid, 'RULE')
Some tools rely on this. We can implement it in CRDB by always returning false, since CRDB does not have RULE
privileges.
Instructions:
- Modify t
-
Updated
Nov 23, 2021 - C++
Add basic CI
We already have some scripts in the scripts
directory. It would be good to run them for every PR.
This is also a great task for beginners.
## Python/Regex fix
-
Updated
Nov 22, 2021 - C++
Currently we only support Upsert for CockroachDB. Implementing same for MySQL should be pretty straightforward as well.
Wonder if we can also use INSERT ON CONFLICT UPDATE for PostgreSQL to ensure operation with same signature also works.
Feature Request
Is your feature request related to a problem?
There are too many modules in examples and we have to update example versions in every example pom.xml
during project release, which is tedious to maintain.
Describe the feature you would like.
Using maven-flatten-plugin
in examples and replace version with variable in pom.xml
.
-
Updated
Nov 22, 2021 - C
Describe the bug
Using a time dimension on a runningTotal measure on Snowflake mixes quoted and unquoted columns in the query. This fails the query, because Snowflake has specific rules about quoted columns. Specifically:
- All unquoted column names are treated as upper case
- Quoted column names are case sensitive.
So "date_from" <> date_from
To Reproduce
Steps to reproduce
Issue description
This option will improve performance in many scenarios
https://dev.mysql.com/worklog/task/?id=8134
https://www.facebook.com/weixiang.zhai/posts/678596755543802
When I try to connect dolt server using golang's go-sql-driver/mysql driver in multiple heads mode, It seems that go-sql-driver/mysql driver does't support database with a sub name. DSN string format in go-sql-driver/mysql like [username[:password]@][protocol[(address)]]/dbname[?param1=value1&...¶mN=valueN]. When dbname is "mydb", It works, but not work when dbname is "mydb/feature-branch".
-
Updated
Sep 30, 2021 - JavaScript
Hello Philip!
I think there is an issue with this part of the code of rqlite (store/store.go).
func (s *Store) Database(leader bool) ([]byte, error) {
if leader && s.raft.State() != raft.Leader {
return nil, ErrNotLeader
}
// Ensure only one snapshot can take place at once, and block all queries.
s.mu.Lock()
defer s.mu.Unlock()
f, err := ioutil.TempFile("", "rqlilte-snap-
-
Updated
Nov 13, 2021 - Python
Whenever I submit a GET request to the api/public/groups endpoint, the "collections" field for each group returns "None" on every group, even if they have access to collections. I can verify that the
It looks like there are hints at connecting directly with a socket path https://github.com/beekeeper-studio/beekeeper-studio/blob/9ff3131030057364f31f3034677fc0f6a9bd48b5/src/lib/connection-provider.js#L23
But there does not appear to be anything in the UI to indicate
-
Updated
Nov 19, 2021 - Go
Is your feature request related to a problem?
I like to use the chart tab in the console. However, the chart scale is not customisable and starts at 0. This makes it hard to visualise data where the changes are relatively small.
Describe the solution you'd like.
Either
- Dynamic scaling of the charts based on results values
- Manual scaling by adding a range min/max input in the con
-
Updated
Nov 19, 2021 - Go
-
Updated
Nov 22, 2021 - C#
-
Updated
Oct 19, 2021 - Python
-
Updated
Nov 20, 2021 - Jupyter Notebook
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)