Skip to content

Commit ab42af8

Browse files
Rename sqlitecpp -> sqlite and alias namespace to match
1 parent 1e26b60 commit ab42af8

7 files changed

Lines changed: 30 additions & 20 deletions

File tree

src/modules/Column.cppm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ module;
77

88
#include <SQLiteCpp/Column.h>
99

10-
export module sqlitecpp.column;
10+
export module sqlite.column;
1111

12-
import sqlitecpp.sqlite3forward;
12+
import sqlite.sqlite3forward;
1313

1414
/**
1515
* @namespace SQLite
@@ -26,3 +26,5 @@ export namespace SQLite {
2626

2727
using SQLite::operator<<;
2828
}
29+
30+
export namespace sqlite = SQLite;

src/modules/Database.cppm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ module;
77

88
#include <SQLiteCpp/Database.h>
99

10-
export module sqlitecpp.database;
10+
export module sqlite.database;
1111

12-
import sqlitecpp.sqlite3forward;
12+
import sqlite.sqlite3forward;
1313

1414
/**
1515
* @namespace SQLite
@@ -36,3 +36,5 @@ export namespace SQLite {
3636
using SQLite::Header;
3737
using SQLite::Database;
3838
}
39+
40+
export namespace sqlite = SQLite;

src/modules/Exception.cppm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ module;
77

88
#include <SQLiteCpp/Exception.h>
99

10-
export module sqlitecpp.exception;
10+
export module sqlite.exception;
1111

12-
import sqlitecpp.sqlite3forward;
12+
import sqlite.sqlite3forward;
1313

1414
/**
1515
* @namespace SQLite
@@ -18,3 +18,5 @@ import sqlitecpp.sqlite3forward;
1818
export namespace SQLite {
1919
using SQLite::Exception;
2020
}
21+
22+
export namespace sqlite = SQLite;

src/modules/SQLiteCpp.cppm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
* @brief File containing the module declaration for SQLiteC++.
44
*/
55

6-
export module sqlitecpp;
6+
export module sqlite;
77

8-
export import sqlitecpp.column;
9-
export import sqlitecpp.database;
10-
export import sqlitecpp.exception;
11-
export import sqlitecpp.statement;
12-
export import sqlitecpp.transaction;
8+
export import sqlite.column;
9+
export import sqlite.database;
10+
export import sqlite.exception;
11+
export import sqlite.statement;
12+
export import sqlite.transaction;

src/modules/Statement.cppm

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ module;
77

88
#include <SQLiteCpp/Statement.h>
99

10-
export module sqlitecpp.statement;
10+
export module sqlite.statement;
1111

12-
export import sqlitecpp.column;
13-
export import sqlitecpp.database;
12+
export import sqlite.column;
13+
export import sqlite.database;
1414

15-
import sqlitecpp.sqlite3forward;
15+
import sqlite.sqlite3forward;
1616

1717
/**
1818
* @namespace SQLite
@@ -21,3 +21,5 @@ import sqlitecpp.sqlite3forward;
2121
export namespace SQLite {
2222
using SQLite::Statement;
2323
}
24+
25+
export namespace sqlite = SQLite;

src/modules/Transaction.cppm

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ module;
77

88
#include <SQLiteCpp/Transaction.h>
99

10-
export module sqlitecpp.transaction;
10+
export module sqlite.transaction;
1111

12-
export import sqlitecpp.database;
12+
export import sqlite.database;
1313

14-
import sqlitecpp.sqlite3forward;
14+
import sqlite.sqlite3forward;
1515

1616
/**
1717
* @namespace SQLite
@@ -21,3 +21,5 @@ export namespace SQLite {
2121
using SQLite::TransactionBehavior;
2222
using SQLite::Transaction;
2323
}
24+
25+
export namespace sqlite = SQLite;

src/modules/sqlite3forward.cppm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module;
77

88
#include <sqlite3.h>
99

10-
export module sqlitecpp.sqlite3forward;
10+
export module sqlite.sqlite3forward;
1111

1212
/**
1313
* @namespace SQLite

0 commit comments

Comments
 (0)